diff options
author | Ladislav Zezula <zezula@volny.cz> | 2016-11-13 09:51:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-13 09:51:18 +0100 |
commit | 6ce23ad12f435d6468916fc6101ce7101040e1aa (patch) | |
tree | dca427ff130eb0d6ddcc5f0d30895ca0c70b8923 | |
parent | 64e610177730715c2b45c12186767316e40cc6c5 (diff) | |
parent | 5e668b69a4081d19647b6f53b855c02fbcf86860 (diff) |
Merge pull request #92 from Lectem/patch-1
Merged.
-rw-r--r-- | src/FileStream.cpp | 6 | ||||
-rw-r--r-- | src/StormLib.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/FileStream.cpp b/src/FileStream.cpp index 1e88b63..2aeada1 100644 --- a/src/FileStream.cpp +++ b/src/FileStream.cpp @@ -34,14 +34,14 @@ // Local functions - platform-specific functions
#ifndef PLATFORM_WINDOWS
-static int nLastError = ERROR_SUCCESS;
+static DWORD nLastError = ERROR_SUCCESS;
-int GetLastError()
+DWORD GetLastError()
{
return nLastError;
}
-void SetLastError(int nError)
+void SetLastError(DWORD nError)
{
nLastError = nError;
}
diff --git a/src/StormLib.h b/src/StormLib.h index b6df481..07cf2ce 100644 --- a/src/StormLib.h +++ b/src/StormLib.h @@ -1085,8 +1085,8 @@ int WINAPI SCompDecompress2(void * pvOutBuffer, int * pcbOutBuffer, void * pv #ifndef PLATFORM_WINDOWS -void SetLastError(int err); -int GetLastError(); +void SetLastError(DWORD err); +DWORD GetLastError(); #endif |