diff options
author | Shauren <shauren.trinity@gmail.com> | 2025-02-28 17:41:28 +0100 |
---|---|---|
committer | Ovahlord <dreadkiller@gmx.de> | 2025-04-05 10:32:12 +0200 |
commit | 64fcb3917685ab5b2feb75c2542911c12df6b6ba (patch) | |
tree | fdea77a819244d5b8ac4c6a823a4b6ec046ad522 /dep/CascLib/src/common/Common.cpp | |
parent | c300859a083762526bacc0298ffd59ee77eb309c (diff) |
Dep/CascLib: Update to ladislav-zezula/CascLib@07ab5f37ad282cc101d5c17793c550a0a6d4637f
(cherry picked from commit 464d8e39e083a2f3a73f2c33a7b20036406541c8)
Diffstat (limited to 'dep/CascLib/src/common/Common.cpp')
-rw-r--r-- | dep/CascLib/src/common/Common.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dep/CascLib/src/common/Common.cpp b/dep/CascLib/src/common/Common.cpp index 6058bf28b75..a33099b3c6b 100644 --- a/dep/CascLib/src/common/Common.cpp +++ b/dep/CascLib/src/common/Common.cpp @@ -77,7 +77,9 @@ unsigned char IntToHexChar[] = "0123456789abcdef"; //----------------------------------------------------------------------------- // GetCascError/SetCascError support for non-Windows platform -static DWORD dwLastError = ERROR_SUCCESS; +#ifndef CASCLIB_PLATFORM_WINDOWS +static __thread DWORD dwLastError = ERROR_SUCCESS; +#endif DWORD GetCascError() { @@ -92,8 +94,9 @@ void SetCascError(DWORD dwErrCode) { #ifdef CASCLIB_PLATFORM_WINDOWS SetLastError(dwErrCode); -#endif +#else dwLastError = dwErrCode; +#endif } //----------------------------------------------------------------------------- |