use explicit GetModuleFileNameW

This commit is contained in:
pionere 2022-04-12 14:33:12 +02:00 committed by Ryan C. Gordon
parent de711e1685
commit 009a0ff95f
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ SDL_GetBasePath(void)
path = (WCHAR *) ptr;
len = GetModuleFileName(NULL, path, buflen);
len = GetModuleFileNameW(NULL, path, buflen);
/* if it truncated, then len >= buflen - 1 */
/* if there was enough room (or failure), len < buflen - 1 */
if (len < buflen - 1) {