externals/libmpq: sync with upstream repository [r309] - thanks to ge0rg!

--HG--
branch : trunk
This commit is contained in:
click
2010-08-13 00:00:59 +02:00
parent 999bae68a4
commit 91eed572af
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;