aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2021-05-01 23:20:21 +0200
committerGitHub <noreply@github.com>2021-05-01 23:20:21 +0200
commitefbeff88a038e672ba048ecff088feac6cc978f5 (patch)
treef6997c6849add92053bb20363e5581d88bf226a9
parent62001d116a35c1ccd70e177697439ec8fcfdc91c (diff)
parent81c796ece892dc94f8ce1928068b7b99fbba5190 (diff)
Merge pull request #219 from glebm/patch-1
Thank you for the contribution!
-rw-r--r--src/FileStream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FileStream.cpp b/src/FileStream.cpp
index 7268923..2266518 100644
--- a/src/FileStream.cpp
+++ b/src/FileStream.cpp
@@ -34,7 +34,7 @@
// Local functions - platform-specific functions
#ifndef STORMLIB_WINDOWS
-static DWORD nLastError = ERROR_SUCCESS;
+static thread_local DWORD nLastError = ERROR_SUCCESS;
DWORD GetLastError()
{