From 1ae24fd9381dd0722758c5610a231aac3e254ced Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 9 Mar 2008 02:44:50 +0000 Subject: [PATCH] Fixed compiler warnings in win32 API calls (thanks, Dennis!). --- CHANGELOG.txt | 1 + platform/windows.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index ae0bf5b..0ec5ec8 100644 --- a/CHANGELOG.txt +++ b/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. diff --git a/platform/windows.c b/platform/windows.c index 819c2b1..b0ec81b 100644 --- a/platform/windows.c +++ b/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;