summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryazoo <yazoo@yaz0r.net>2009-08-10 00:36:44 +0200
committeryazoo <yazoo@yaz0r.net>2009-08-10 00:36:44 +0200
commitb89cba6d1588f40d4063a2d461bb0a00a5383ed6 (patch)
treeb30722cf8cb16803913cb1e5e1fa15c08c4c5af9
parentd0578fdfee2422c97ce4eb01a73c7251977f4260 (diff)
Fix compile
-rw-r--r--MSVC9/mpqlib.vcproj54
-rw-r--r--mpq-bios.c3
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 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
- Version="9,00"
+ Version="9.00"
Name="mpqlib"
ProjectGUID="{6EB0B7ED-DF9D-4264-8046-A7D18F927E34}"
RootNamespace="mpqlib"
Keyword="Win32Proj"
- TargetFrameworkVersion="196613"
+ TargetFrameworkVersion="131072"
>
<Platforms>
<Platform
@@ -150,43 +150,47 @@
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
- RelativePath=".\errors.c"
+ RelativePath="..\errors.c"
>
</File>
<File
- RelativePath=".\hashtab.c"
+ RelativePath="..\hashtab.c"
>
</File>
<File
- RelativePath=".\lookupa.c"
+ RelativePath="..\lookupa.c"
>
</File>
<File
- RelativePath=".\mpq-bios.c"
+ RelativePath="..\mpq-bios.c"
>
</File>
<File
- RelativePath=".\mpq-crypto.c"
+ RelativePath="..\mpq-crypto.c"
>
</File>
<File
- RelativePath=".\mpq-errors.c"
+ RelativePath="..\mpq-errors.c"
>
</File>
<File
- RelativePath=".\mpq-file.c"
+ RelativePath="..\mpq-file.c"
>
</File>
<File
- RelativePath=".\mpq-fs.c"
+ RelativePath="..\mpq-fs.c"
>
</File>
<File
- RelativePath=".\mpq-misc.c"
+ RelativePath="..\mpq-misc.c"
>
</File>
<File
- RelativePath=".\recycle.c"
+ RelativePath="..\recycle.c"
+ >
+ </File>
+ <File
+ RelativePath="..\stalloc.c"
>
</File>
</Filter>
@@ -196,47 +200,51 @@
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
- RelativePath=".\errors.h"
+ RelativePath="..\errors.h"
+ >
+ </File>
+ <File
+ RelativePath="..\hashtab.h"
>
</File>
<File
- RelativePath=".\int-bios.h"
+ RelativePath="..\int-bios.h"
>
</File>
<File
- RelativePath=".\lookupa.h"
+ RelativePath="..\lookupa.h"
>
</File>
<File
- RelativePath=".\mpq-bios.h"
+ RelativePath="..\mpq-bios.h"
>
</File>
<File
- RelativePath=".\mpq-crypto.h"
+ RelativePath="..\mpq-crypto.h"
>
</File>
<File
- RelativePath=".\mpq-errors.h"
+ RelativePath="..\mpq-errors.h"
>
</File>
<File
- RelativePath=".\mpq-file.h"
+ RelativePath="..\mpq-file.h"
>
</File>
<File
- RelativePath=".\mpq-fs.h"
+ RelativePath="..\mpq-fs.h"
>
</File>
<File
- RelativePath=".\mpq-misc.h"
+ RelativePath="..\mpq-misc.h"
>
</File>
<File
- RelativePath=".\mpqlib-stdint.h"
+ RelativePath="..\mpqlib-stdint.h"
>
</File>
<File
- RelativePath=".\recycle.h"
+ RelativePath="..\recycle.h"
>
</File>
</Filter>
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: