Browse Source

Fix an error on Windows.

UInt32* isn't a LPDWORD... unless we cast it.
Darryl Pogue 13 years ago
parent
commit
71eb7ce8df
  1. 2
      Sources/Plasma/PubUtilLib/plFile/plSecureStream.cpp

2
Sources/Plasma/PubUtilLib/plFile/plSecureStream.cpp

@ -276,7 +276,7 @@ UInt32 plSecureStream::IRead(UInt32 bytes, void* buffer)
return 0; return 0;
UInt32 numItems; UInt32 numItems;
#if HS_BUILD_FOR_WIN32 #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 #elif HS_BUILD_FOR_UNIX
numItems = fread(buffer, bytes, 1, fRef); numItems = fread(buffer, bytes, 1, fRef);
bool success = numItems != 0; bool success = numItems != 0;

Loading…
Cancel
Save