Bläddra i källkod

Patched to compile (thanks, Christoph!).

Ryan C. Gordon 16 år sedan
förälder
incheckning
a4a7f88db0
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/platform_windows.c

+ 1 - 1
src/platform_windows.c

@@ -1494,7 +1494,7 @@ static int __PHYSFS_platformStatNewWay(const char *filename, int *exists,
     else
     {
         stat->filetype = PHYSFS_FILETYPE_REGULAR;
-        filesize = (((PHYSFS_uint64) winstat.nFileSizeHigh) << 32) | winstat.nFileSizeLow;
+        stat->filesize = (((PHYSFS_uint64) winstat.nFileSizeHigh) << 32) | winstat.nFileSizeLow;
     } /* else */
 
     stat->readonly = ((winstat.dwFileAttributes & FILE_ATTRIBUTE_READONLY) != 0);