mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-11-13 15:15:18 +00:00
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.
|
||
|---|---|---|
| .. | ||
| android | ||
| cocoa | ||
| dummy | ||
| emscripten | ||
| haiku | ||
| nacl | ||
| os2 | ||
| unix | ||
| vita | ||
| windows | ||
| winrt | ||