diff options
author | Jamaika1 <lukaszcz18@wp.pl> | 2023-08-08 14:07:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-08 20:07:59 +0800 |
commit | 6bf33b704cd31dccf25e68480464aa22d3fcad5a (patch) | |
tree | e224ebc1e258ab4e78dfb50505fc5b8ebf80a7f2 /src/common | |
parent | codespell: Add .codespellrc to set default options. (diff) | |
download | xz-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 'src/common')
-rw-r--r-- | src/common/mythread.h | 2 |
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) |