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

This commit is contained in:
Ryan C. Gordon 2008-03-09 02:44:50 +00:00
parent 3b0e1d7471
commit 1ae24fd938
2 changed files with 4 additions and 3 deletions

View File

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

View File

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