SDL/src/filesystem
Phillip Trudeau bc7ac134db Windows: Fix SDL_GetBasePath() truncating paths
SDL_GetBasePath grows its path buffer for long paths, but GetModuleFileNameExW always truncates and succeeds,
so `len` was always equal to (buflen - 1) which is 127. This is easily fixed by checking for (buflen - 1) instead of buflen.
For paths longer than MAX_PATH, this problem sometimes got hidden by Windows path shortening ("C:\PROGRA~1\" etc.).

Tested on Windows 10 x64 19041 and 10586.
2021-06-12 23:07:46 -04:00
..
android Updated copyright for 2021 2021-01-02 10:25:38 -08:00
cocoa Updated copyright for 2021 2021-01-02 10:25:38 -08:00
dummy Updated copyright for 2021 2021-01-02 10:25:38 -08:00
emscripten emscripten: Create directory recursively in GetPrefPath 2021-02-13 11:56:01 -05:00
haiku Updated copyright for 2021 2021-01-02 10:25:38 -08:00
nacl Updated copyright for 2021 2021-01-02 10:25:38 -08:00
os2 Updated copyright for 2021 2021-01-02 10:25:38 -08:00
unix filesystem: Better OpenBSD support for SDL_GetBasePath(). 2021-04-19 23:32:45 -04:00
vita Deprecate dolcesdk 2021-03-08 09:07:12 -08:00
windows Windows: Fix SDL_GetBasePath() truncating paths 2021-06-12 23:07:46 -04:00
winrt Updated copyright for 2021 2021-01-02 10:25:38 -08:00