mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
externals/libmpq: sync with upstream repository [r309] - thanks to ge0rg!
--HG-- branch : trunk
This commit is contained in:
2
externals/libmpq/libmpq/mpq.c
vendored
2
externals/libmpq/libmpq/mpq.c
vendored
@@ -694,7 +694,7 @@ int32_t libmpq__block_open_offset(mpq_archive_s *mpq_archive, uint32_t file_numb
|
||||
if (mpq_archive->mpq_block[mpq_archive->mpq_map[file_number].block_table_indices].flags & LIBMPQ_FLAG_ENCRYPTED) {
|
||||
|
||||
/* check if we don't know the file seed, try to find it. */
|
||||
if (libmpq__decrypt_key((uint8_t *)mpq_archive->mpq_file[file_number]->packed_offset, packed_size, mpq_archive->block_size, mpq_archive->mpq_file[file_number]->seed) < 0) {
|
||||
if (libmpq__decrypt_key((uint8_t *)mpq_archive->mpq_file[file_number]->packed_offset, packed_size, mpq_archive->block_size, &mpq_archive->mpq_file[file_number]->seed) < 0) {
|
||||
|
||||
/* sorry without seed, we cannot extract file. */
|
||||
result = LIBMPQ_ERROR_DECRYPT;
|
||||
|
||||
2
externals/libmpq/libmpq/wave.c
vendored
2
externals/libmpq/libmpq/wave.c
vendored
@@ -64,7 +64,7 @@ int32_t libmpq__do_decompress_wave(uint8_t *out_buf, int32_t out_length, uint8_t
|
||||
uint32_t index;
|
||||
int32_t nr_array1[2];
|
||||
int32_t nr_array2[2];
|
||||
uint32_t count = 0;
|
||||
int32_t count = 0;
|
||||
|
||||
/* end on input buffer. */
|
||||
uint8_t *in_end = in_buf + in_length;
|
||||
|
||||
Reference in New Issue
Block a user