diff options
author | Ladislav Zezula <ladislav.zezula@avg.com> | 2014-01-13 15:33:55 +0100 |
---|---|---|
committer | Ladislav Zezula <ladislav.zezula@avg.com> | 2014-01-13 15:33:55 +0100 |
commit | 48dbf357a334725059dd7ab12c4af041417e4dc4 (patch) | |
tree | 2e07ded23c756614f677d2c6b5b07a30bbf2ae63 /src/SFileAttributes.cpp | |
parent | 699180bf90ef4952dc7e0f57ce025f54424e30cd (diff) |
+ Support for BOBA map protector
Diffstat (limited to 'src/SFileAttributes.cpp')
-rw-r--r-- | src/SFileAttributes.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/SFileAttributes.cpp b/src/SFileAttributes.cpp index f947d79..a74b54f 100644 --- a/src/SFileAttributes.cpp +++ b/src/SFileAttributes.cpp @@ -328,6 +328,10 @@ int SAttrLoadAttributes(TMPQArchive * ha) // File table must be initialized assert(ha->pFileTable != NULL); + // Don't load the attributes file from malformer Warcraft III maps + if(ha->dwFlags & MPQ_FLAG_MALFORMED) + return ERROR_FILE_CORRUPT; + // Attempt to open the "(attributes)" file. // If it's not there, then the archive doesn't support attributes if(SFileOpenFileEx((HANDLE)ha, ATTRIBUTES_NAME, SFILE_OPEN_ANY_LOCALE, &hFile)) |