Explorar o código

use explicit GetModuleFileNameW

pionere %!s(int64=3) %!d(string=hai) anos
pai
achega
009a0ff95f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/filesystem/windows/SDL_sysfilesystem.c

+ 1 - 1
src/filesystem/windows/SDL_sysfilesystem.c

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