From b89cba6d1588f40d4063a2d461bb0a00a5383ed6 Mon Sep 17 00:00:00 2001 From: yazoo Date: Mon, 10 Aug 2009 00:36:44 +0200 Subject: Fix compile --- MSVC9/mpqlib.vcproj | 54 ++++++++++++++++++++++++++++++----------------------- mpq-bios.c | 3 ++- 2 files changed, 33 insertions(+), 24 deletions(-) diff --git a/MSVC9/mpqlib.vcproj b/MSVC9/mpqlib.vcproj index ab45191..606e92c 100644 --- a/MSVC9/mpqlib.vcproj +++ b/MSVC9/mpqlib.vcproj @@ -1,12 +1,12 @@ + + @@ -196,47 +200,51 @@ UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" > + + diff --git a/mpq-bios.c b/mpq-bios.c index 79b6512..70d466f 100644 --- a/mpq-bios.c +++ b/mpq-bios.c @@ -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; @@ -543,6 +542,8 @@ uint64_t mpqlib_ioctl(struct mpq_archive_t * mpq_a, enum mpqlib_ioctl_t command, void * buffer; va_list ap; va_start(ap, command); + + __mpqlib_errno = MPQLIB_ERROR_NO_ERROR; switch(command) { case MPQLIB_IOCTL_NO_ACTION: -- cgit v1.2.3