diff options
Diffstat (limited to 'mpq-bios.c')
-rw-r--r-- | mpq-bios.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -535,7 +535,6 @@ int mpqlib_find_hash_entry_by_name(struct mpq_archive_t * mpq_a, const char * na } uint64_t mpqlib_ioctl(struct mpq_archive_t * mpq_a, enum mpqlib_ioctl_t command, ...) { - __mpqlib_errno = MPQLIB_ERROR_NO_ERROR; uint64_t r = 0; uint32_t u32; uint64_t u64; @@ -544,6 +543,8 @@ uint64_t mpqlib_ioctl(struct mpq_archive_t * mpq_a, enum mpqlib_ioctl_t command, va_list ap; va_start(ap, command); + __mpqlib_errno = MPQLIB_ERROR_NO_ERROR; + switch(command) { case MPQLIB_IOCTL_NO_ACTION: break; |