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:
@ -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;
|
||||
|
Reference in New Issue
Block a user