Fixed compiler warnings in win32 API calls (thanks, Dennis!). stable-1.0
authorRyan C. Gordon <icculus@icculus.org>
Sun, 09 Mar 2008 02:44:50 +0000
branchstable-1.0
changeset 929 f2a9da5cc943
parent 927 8867d6c60ebf
child 931 e66ed41c66e6
Fixed compiler warnings in win32 API calls (thanks, Dennis!).
CHANGELOG
platform/win32.c
--- a/CHANGELOG	Wed Feb 20 12:24:10 2008 +0000
+++ b/CHANGELOG	Sun Mar 09 02:44:50 2008 +0000
@@ -4,6 +4,7 @@
 
 -- stuff in the stable-1.0 branch, backported from 2.0.0 dev branch, etc ---
 
+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/win32.c	Wed Feb 20 12:24:10 2008 +0000
+++ b/platform/win32.c	Sun Mar 09 02:44:50 2008 +0000
@@ -850,8 +850,8 @@
 int __PHYSFS_platformSeek(void *opaque, PHYSFS_uint64 pos)
 {
     HANDLE FileHandle = ((win32file *) opaque)->handle;
-    DWORD HighOrderPos;
-    DWORD *pHighOrderPos;
+    LONG HighOrderPos;
+    PLONG pHighOrderPos;
     DWORD rc;
 
     /* Get the high order 32-bits of the position */
@@ -888,7 +888,7 @@
 PHYSFS_sint64 __PHYSFS_platformTell(void *opaque)
 {
     HANDLE FileHandle = ((win32file *) opaque)->handle;
-    DWORD HighPos = 0;
+    LONG HighPos = 0;
     DWORD LowPos;
     PHYSFS_sint64 retval;