Fixed compiler warnings in win32 API calls (thanks, Dennis!).
authorRyan C. Gordon <icculus@icculus.org>
Sun, 09 Mar 2008 02:44:50 +0000
changeset 930 45ad625f03bc
parent 928 0e37b8163248
child 932 5e6d85d827f4
Fixed compiler warnings in win32 API calls (thanks, Dennis!).
CHANGELOG.txt
platform/windows.c
--- a/CHANGELOG.txt	Wed Feb 20 12:24:10 2008 +0000
+++ b/CHANGELOG.txt	Sun Mar 09 02:44:50 2008 +0000
@@ -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.
--- a/platform/windows.c	Wed Feb 20 12:24:10 2008 +0000
+++ b/platform/windows.c	Sun Mar 09 02:44:50 2008 +0000
@@ -1089,8 +1089,8 @@
 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 @@
 PHYSFS_sint64 __PHYSFS_platformTell(void *opaque)
 {
     HANDLE Handle = ((WinApiFile *) opaque)->handle;
-    DWORD HighPos = 0;
+    LONG HighPos = 0;
     DWORD LowPos;
     PHYSFS_sint64 retval;