Selaa lähdekoodia

Fixed compiler warning.

Ryan C. Gordon 7 vuotta sitten
vanhempi
commit
f94ce0613d
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/physfs_platform_windows.c

+ 1 - 1
src/physfs_platform_windows.c

@@ -580,7 +580,7 @@ char *__PHYSFS_platformCalcUserDir(void)
 
 
         if (psize == 0)  /* probably on Windows XP, try a different way. */
         if (psize == 0)  /* probably on Windows XP, try a different way. */
         {
         {
-            char x = 0;
+            WCHAR x = 0;
             rc = pGetDir(accessToken, &x, &psize);
             rc = pGetDir(accessToken, &x, &psize);
             GOTO_IF(rc, PHYSFS_ERR_OS_ERROR, done);  /* should have failed! */
             GOTO_IF(rc, PHYSFS_ERR_OS_ERROR, done);  /* should have failed! */
             GOTO_IF(!psize, PHYSFS_ERR_OS_ERROR, done);  /* Uhoh... */
             GOTO_IF(!psize, PHYSFS_ERR_OS_ERROR, done);  /* Uhoh... */