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.

(cherry picked from commit c0c0cd4a48)
This commit is contained in:
Jamaika1 2023-08-08 14:07:59 +02:00 committed by Lasse Collin
parent f1123eefe1
commit ec0d5c99c3
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ typedef struct {
abort(); \
if (pending_) { \
func(); \
if (!InitOnceComplete(&once, 0, NULL)) \
if (!InitOnceComplete(&once_, 0, NULL)) \
abort(); \
} \
} while (0)