March 10, 2026
7:46 p.m.
After Windows XP the string termination behavior of GetModuleFileName was changed to always terminate the path returned, even if the buffer is insufficient to contain the null terminator. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10291