From d1bf5e1c71af432ccc24371a3611dc33edb7361f Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Wed, 4 Dec 2024 09:16:28 +0100 Subject: Changed behavior of patched files with MPQ_FLAG_DELETE_MARKER --- src/SFileFindFile.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/SFileFindFile.cpp') diff --git a/src/SFileFindFile.cpp b/src/SFileFindFile.cpp index b741e5f..8f4849f 100644 --- a/src/SFileFindFile.cpp +++ b/src/SFileFindFile.cpp @@ -352,7 +352,9 @@ static DWORD DoMPQSearch(TMPQSearch * hs, SFILE_FIND_DATA * lpFindFileData) dwErrCode = (ha->pHashTable != NULL) ? DoMPQSearch_HashTable(hs, lpFindFileData, ha) : DoMPQSearch_FileTable(hs, lpFindFileData, ha); if(dwErrCode == ERROR_SUCCESS) + { return dwErrCode; + } // If there is no more patches in the chain, stop it. // This also keeps hs->ha non-NULL, which is required -- cgit v1.2.3