Prechádzať zdrojové kódy

Fixed compiler warnings in win32 API calls (thanks, Dennis!).

Ryan C. Gordon 18 rokov pred
rodič
commit
1ae24fd938
2 zmenil súbory, kde vykonal 4 pridanie a 3 odobranie
  1. 1 0
      CHANGELOG.txt
  2. 3 3
      platform/windows.c

+ 1 - 0
CHANGELOG.txt

@@ -2,6 +2,7 @@
  * CHANGELOG.
  */
 
+03082008 - Fixed compiler warnings in Windows platform layer (thanks, Dennis!).
 02202008 - Various archiver swap and compare functions now check if they are
            swapping/comparing an item against itself, for efficiency and
            to prevent overlapping memcpy() calls.

+ 3 - 3
platform/windows.c

@@ -1089,8 +1089,8 @@ PHYSFS_sint64 __PHYSFS_platformWrite(void *opaque, const void *buffer,
 int __PHYSFS_platformSeek(void *opaque, PHYSFS_uint64 pos)
 {
     HANDLE Handle = ((WinApiFile *) opaque)->handle;
-    DWORD HighOrderPos;
-    DWORD *pHighOrderPos;
+    LONG HighOrderPos;
+    PLONG pHighOrderPos;
     DWORD rc;
 
     /* Get the high order 32-bits of the position */
@@ -1127,7 +1127,7 @@ int __PHYSFS_platformSeek(void *opaque, PHYSFS_uint64 pos)
 PHYSFS_sint64 __PHYSFS_platformTell(void *opaque)
 {
     HANDLE Handle = ((WinApiFile *) opaque)->handle;
-    DWORD HighPos = 0;
+    LONG HighPos = 0;
     DWORD LowPos;
     PHYSFS_sint64 retval;