diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2009-08-09 21:37:45 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2009-08-09 21:37:45 +0200 |
commit | c892ac011494f41fdf43c00d1a940612aa7e1a45 (patch) | |
tree | 6d8f2681a948da4fd977ef3b6a174e94070aa4d6 | |
parent | a6def883e44695f8682edc208ebf1e97fb7c2370 (diff) |
Fixing mpqlib_read; ioctl needs buffer in as well...
-rw-r--r-- | mpq-file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -137,7 +137,7 @@ static int cache_sector(struct mpq_file_t * mpq_f, int sector) { if (mpq_f->current_sector != sector) { int il, ol; mpqlib_ioctl(mpq_f->mpq_a, MPQLIB_IOCTL_SEEK, mpq_f->offsets[sector]); - mpqlib_ioctl(mpq_f->mpq_a, MPQLIB_IOCTL_READ, mpq_f->sizes[sector]); + mpqlib_ioctl(mpq_f->mpq_a, MPQLIB_IOCTL_READ, in_buf, mpq_f->sizes[sector]); mpq_f->current_sector = sector; il = ol = sector == (mpq_f->number_of_sectors - 1) ? mpq_f->remaining_bytes : mpq_f->sector_size; |