]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
mythread.h: Fix typo error in Vista threads mythread_once().
authorJamaika1 <lukaszcz18@wp.pl>
Tue, 8 Aug 2023 12:07:59 +0000 (14:07 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 7 May 2024 12:30:38 +0000 (15:30 +0300)
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

index 413821836020f4b7bec5a873bab2d24ed71f517b..da858a330ffd589858485ac0344c089183ed8341 100644 (file)
@@ -372,7 +372,7 @@ typedef struct {
                        abort(); \
                if (pending_) { \
                        func(); \
-                       if (!InitOnceComplete(&once, 0, NULL)) \
+                       if (!InitOnceComplete(&once_, 0, NULL)) \
                                abort(); \
                } \
        } while (0)