diff options
author | Ladislav Zezula <ladislav.zezula@avast.com> | 2021-12-26 11:36:55 +0100 |
---|---|---|
committer | Ladislav Zezula <ladislav.zezula@avast.com> | 2021-12-26 11:36:55 +0100 |
commit | a5ef7a850aac844abf2e3859e26617ed596d4624 (patch) | |
tree | 92c30943d8df469bc2ee372c1c022c6dfa9fb95e /src/StormLib.h | |
parent | fb9b3d4ba173d3ff4c70b0e404f6b4ebee864ce9 (diff) |
Fixed assert on some platforms
Diffstat (limited to 'src/StormLib.h')
-rw-r--r-- | src/StormLib.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/StormLib.h b/src/StormLib.h index 1335f0e..4854704 100644 --- a/src/StormLib.h +++ b/src/StormLib.h @@ -171,8 +171,6 @@ extern "C" { #define HET_ENTRY_DELETED 0x80 // NameHash1 value for a deleted entry #define HET_ENTRY_FREE 0x00 // NameHash1 value for free entry -#define HASH_STATE_SIZE 0x60 // Size of LibTomCrypt's hash_state structure - // Values for SFileOpenArchive #define SFILE_OPEN_HARD_DISK_FILE 2 // Open the archive on HDD #define SFILE_OPEN_CDROM_FILE 3 // Open the archive only if it is on CDROM @@ -888,7 +886,7 @@ typedef struct _TMPQFile DWORD dwSectorOffs; // File position of currently loaded file sector DWORD dwSectorSize; // Size of the file sector. For single unit files, this is equal to the file size - unsigned char hctx[HASH_STATE_SIZE]; // Hash state for MD5. Used when saving file to MPQ + void * hctx; // Hash state for MD5. Used when saving file to MPQ DWORD dwCrc32; // CRC32 value, used when saving file to MPQ DWORD dwAddFileError; // Result of the "Add File" operations |