From: Jamaika1 Date: Tue, 8 Aug 2023 12:07:59 +0000 (+0200) Subject: mythread.h: Fix typo error in Vista threads mythread_once(). X-Git-Tag: v5.5.1alpha~215 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bf33b704cd31dccf25e68480464aa22d3fcad5a;p=thirdparty%2Fxz.git 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. --- 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)