From adb52247e3aa96d736cb84f520237f05a28e82cf Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 14 May 2020 11:57:14 +0200 Subject: [PATCH] ntdll: Fix __sync_bool_compare_and_swap() usage. Signed-off-by: Alexandre Julliard --- dlls/ntdll/rtl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ntdll/rtl.c b/dlls/ntdll/rtl.c index 3018c1e88f3..6134a5e702a 100644 --- a/dlls/ntdll/rtl.c +++ b/dlls/ntdll/rtl.c @@ -118,7 +118,7 @@ static inline unsigned char _InterlockedCompareExchange128(__int64 *dest, __int6 : "m" (dest[0]), "m" (dest[1]), "3" (compare[0]), "4" (compare[1]), "c" (xchg_high), "b" (xchg_low) ); #else - ret = __sync_bool_compare_and_swap( (__int128 *)dest, (__int128 *)compare, + ret = __sync_bool_compare_and_swap( (__int128 *)dest, *(__int128 *)compare, ((__int128)xchg_high << 64) | xchg_low ); #endif return ret;