aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLadislav <zezula@volny.cz>2014-02-08 15:56:33 +0100
committerLadislav <zezula@volny.cz>2014-02-08 15:56:33 +0100
commita49ccff3d122825d8f1a46737a9b5c11e87c4ff4 (patch)
tree1001d7b553114be85fbe8a317adb40d25575fc39
parent01393e1d0392e559bbbf015731f98b7a22c54daf (diff)
parent84fc72d0de1c84f93431959bd730cd68685b987d (diff)
Merge pull request #14 from mewpull/master
Fix warning in FileStream.cpp.
-rw-r--r--src/FileStream.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FileStream.cpp b/src/FileStream.cpp
index 963aae8..f4a4c5a 100644
--- a/src/FileStream.cpp
+++ b/src/FileStream.cpp
@@ -1371,7 +1371,7 @@ static TFileStream * FlatStream_Open(const TCHAR * szFileName, DWORD dwStreamFla
{
// Attempt to open the base stream
if(!pStream->BaseOpen(pStream, pStream->szFileName, dwStreamFlags))
- return false;
+ return NULL;
// Load the bitmap, if required to
if(dwStreamFlags & STREAM_FLAG_USE_BITMAP)
@@ -2263,7 +2263,7 @@ static TFileStream * Block4Stream_Open(const TCHAR * szFileName, DWORD dwStreamF
if(NewBaseArray == NULL)
{
SetLastError(ERROR_NOT_ENOUGH_MEMORY);
- return false;
+ return NULL;
}
// Copy the old base data array to the new base data array