summaryrefslogtreecommitdiff
path: root/src/StormLib.h
diff options
context:
space:
mode:
authorLadislav Zezula <ladislav.zezula@avg.com>2014-01-13 14:11:30 +0100
committerLadislav Zezula <ladislav.zezula@avg.com>2014-01-13 14:11:30 +0100
commit699180bf90ef4952dc7e0f57ce025f54424e30cd (patch)
tree63e6b8ebfd03cae39d0193e8498b7086640103d4 /src/StormLib.h
parent8fa3f25f3e2654bfc1d4ff9caa0b9c849b8ee514 (diff)
+ Support for MPQs locked by the Spazzler protector
Diffstat (limited to 'src/StormLib.h')
-rw-r--r--src/StormLib.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/StormLib.h b/src/StormLib.h
index a0cfeb6..b1064d5 100644
--- a/src/StormLib.h
+++ b/src/StormLib.h
@@ -500,6 +500,7 @@ void SetBits(TBitArray * array, unsigned int nBitPosition, unsigned int nBitLeng
#define MPQ_HEADER_SIZE_V2 0x2C
#define MPQ_HEADER_SIZE_V3 0x44
#define MPQ_HEADER_SIZE_V4 0xD0
+#define MPQ_HEADER_DWORDS (MPQ_HEADER_SIZE_V4 / 0x04)
typedef struct _TMPQUserData
{
@@ -837,7 +838,7 @@ typedef struct _TMPQArchive
HASH_STRING pfnHashString; // Hashing function that will convert the file name into hash
TMPQUserData UserData; // MPQ user data. Valid only when ID_MPQ_USERDATA has been found
- BYTE HeaderData[MPQ_HEADER_SIZE_V4]; // Storage for MPQ header
+ DWORD HeaderData[MPQ_HEADER_DWORDS]; // Storage for MPQ header
DWORD dwHETBlockSize;
DWORD dwBETBlockSize;