From d13270a686a9ce21614f103bc134615be75c263a Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Sun, 11 Feb 2024 09:46:30 +0100 Subject: The flag MPQ_OPEN_NO_LISTFILE is now propagated by SFileOpenPatchArchive --- src/FileStream.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/FileStream.cpp') 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) { -- cgit v1.2.3