aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamaika1 <lukaszcz18@wp.pl>2023-08-08 14:07:59 +0200
committerGitHub <noreply@github.com>2023-08-08 20:07:59 +0800
commit6bf33b704cd31dccf25e68480464aa22d3fcad5a (patch)
treee224ebc1e258ab4e78dfb50505fc5b8ebf80a7f2
parentcodespell: Add .codespellrc to set default options. (diff)
downloadxz-6bf33b704cd31dccf25e68480464aa22d3fcad5a.tar.xz
mythread.h: Fix typo error in Vista threads mythread_once().
The "once_" variable was accidentally referred to as just "once". This prevented building with Vista threads when HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR was not defined.
Diffstat (limited to '')
-rw-r--r--src/common/mythread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/mythread.h b/src/common/mythread.h
index 1cce50e9..4495e017 100644
--- a/src/common/mythread.h
+++ b/src/common/mythread.h
@@ -378,7 +378,7 @@ typedef struct {
abort(); \
if (pending_) { \
func(); \
- if (!InitOnceComplete(&once, 0, NULL)) \
+ if (!InitOnceComplete(&once_, 0, NULL)) \
abort(); \
} \
} while (0)