diff options
author | Ladislav Zezula <E:\Ladik\Mail> | 2016-05-27 16:50:50 +0200 |
---|---|---|
committer | Ladislav Zezula <E:\Ladik\Mail> | 2016-05-27 16:50:50 +0200 |
commit | 47b6b6eb4addd82a89d6bcd8fa92f9c0a09a5781 (patch) | |
tree | 5fb9c92f6352c9275d27d6ebb9aee87e20c75151 /src/SFileOpenFileEx.cpp | |
parent | f1655f8afe2ef76d4906eb3e94dfd3c2b5241eb4 (diff) |
+ Support for MPQs that have invalid (and ignored) flags in the block table
+ Support for MPQs that have malformed block indexes (0x8000xxxx or 0x4000xxxx)
Diffstat (limited to 'src/SFileOpenFileEx.cpp')
-rw-r--r-- | src/SFileOpenFileEx.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/SFileOpenFileEx.cpp b/src/SFileOpenFileEx.cpp index 3794680..afbfc78 100644 --- a/src/SFileOpenFileEx.cpp +++ b/src/SFileOpenFileEx.cpp @@ -309,8 +309,10 @@ bool WINAPI SFileOpenFileEx(HANDLE hMpq, const char * szFileName, DWORD dwSearch { if(pFileEntry == NULL || (pFileEntry->dwFlags & MPQ_FILE_EXISTS) == 0) nError = ERROR_FILE_NOT_FOUND; - if(pFileEntry != NULL && pFileEntry->dwFlags & ~MPQ_FILE_VALID_FLAGS) - nError = ERROR_NOT_SUPPORTED; + + // Ignore unknown loading flags (example: MPQ_2016_v1_WME4_4.w3x) +// if(pFileEntry != NULL && pFileEntry->dwFlags & ~MPQ_FILE_VALID_FLAGS) +// nError = ERROR_NOT_SUPPORTED; } // Did the caller just wanted to know if the file exists? |