1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 02:51:27 +00:00

Fix an error on Windows.

UInt32* isn't a LPDWORD... unless we cast it.
This commit is contained in:
Darryl Pogue
2011-10-25 23:40:37 -07:00
parent 8a28ba9e89
commit 71eb7ce8df

View File

@ -276,7 +276,7 @@ UInt32 plSecureStream::IRead(UInt32 bytes, void* buffer)
return 0;
UInt32 numItems;
#if HS_BUILD_FOR_WIN32
bool success = (ReadFile(fRef, buffer, bytes, &numItems, NULL) != 0);
bool success = (ReadFile(fRef, buffer, bytes, (LPDWORD)&numItems, NULL) != 0);
#elif HS_BUILD_FOR_UNIX
numItems = fread(buffer, bytes, 1, fRef);
bool success = numItems != 0;