diff options
-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 |