`GetModuleFileName`'s contract sets the last error on truncation and clears
it when the whole name fits; `copy_truncated` only ever set it. A title that
tells a truncated name from a whole one by the last error (its own check,
after a buffer it grew until the call fit) read a stale error and treated a
whole name as truncated.
Ported from DexNom/VIctory 3c7d845b, GPL-3.0.
(cherry picked from commit b998af5432fb5af2b66c2db504d386a3656bf095)