From ec0d5c99c3ff785dd9d555fb1effe6ef7ad284da Mon Sep 17 00:00:00 2001 From: Jamaika1 Date: Tue, 8 Aug 2023 14:07:59 +0200 Subject: [PATCH] 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 c0c0cd4a483a672b66a13761583bc4f84d86d501) --- src/common/mythread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/mythread.h b/src/common/mythread.h index 41382183..da858a33 100644 --- a/src/common/mythread.h +++ b/src/common/mythread.h @@ -372,7 +372,7 @@ typedef struct { abort(); \ if (pending_) { \ func(); \ - if (!InitOnceComplete(&once, 0, NULL)) \ + if (!InitOnceComplete(&once_, 0, NULL)) \ abort(); \ } \ } while (0)