aboutsummaryrefslogtreecommitdiff
path: root/src/FileStream.cpp
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2024-02-11 09:46:30 +0100
committerLadislav Zezula <zezula@volny.cz>2024-02-11 09:46:30 +0100
commitd13270a686a9ce21614f103bc134615be75c263a (patch)
tree5213b2aaab2f2e35164e71e6399f115ce6b3e4f4 /src/FileStream.cpp
parent8978bdc8214f4ec3543ac11962fc094c3b0803b2 (diff)
The flag MPQ_OPEN_NO_LISTFILE is now propagated by SFileOpenPatchArchive
Diffstat (limited to 'src/FileStream.cpp')
-rw-r--r--src/FileStream.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/FileStream.cpp b/src/FileStream.cpp
index c431cb6..bc5618e 100644
--- a/src/FileStream.cpp
+++ b/src/FileStream.cpp
@@ -508,8 +508,8 @@ static bool BaseMap_Open(TFileStream * pStream, LPCTSTR szFileName, DWORD dwStre
HANDLE hMap = NULL;
bool bResult = false;
- // Keep compiler happy
- dwStreamFlags = dwStreamFlags;
+ // Keep compilers happy
+ STORMLIB_UNUSED(dwStreamFlags);
// 1) Try to treat "szFileName" as a section name
hMap = OpenFileMapping(SECTION_QUERY | FILE_MAP_READ, FALSE, szFileName);
@@ -699,8 +699,8 @@ static bool BaseHttp_Open(TFileStream * pStream, const TCHAR * szFileName, DWORD
HINTERNET hRequest;
DWORD dwTemp = 0;
- // Keep compiler happy
- dwStreamFlags = dwStreamFlags;
+ // Keep compilers happy
+ STORMLIB_UNUSED(dwStreamFlags);
// Don't connect to the internet
if(!InternetGetConnectedState(&dwTemp, 0))
@@ -2245,9 +2245,9 @@ static bool Block4Stream_BlockRead(
assert(StartOffset < EndOffset);
assert(bAvailable == true);
- // Keep compiler happy
- bAvailable = bAvailable;
- EndOffset = EndOffset;
+ // Keep compilers happy
+ STORMLIB_UNUSED(bAvailable);
+ STORMLIB_UNUSED(EndOffset);
while(BytesNeeded != 0)
{