From 470ac022f22a66b437a950c6eb22ac255ddbc7fd Mon Sep 17 00:00:00 2001 From: Alexandre Julliard <julliard@winehq.org> Date: Fri, 19 Nov 2021 15:36:15 +0100 Subject: [PATCH] ntdll: Fix a compiler warning on macOS. Signed-off-by: Alexandre Julliard <julliard@winehq.org> --- dlls/ntdll/unix/sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ntdll/unix/sync.c b/dlls/ntdll/unix/sync.c index 0065f265e42..7f71b737045 100644 --- a/dlls/ntdll/unix/sync.c +++ b/dlls/ntdll/unix/sync.c @@ -2329,7 +2329,7 @@ static union tid_alert_entry *get_tid_alert_entry( HANDLE tid ) if (semaphore_create( mach_task_self(), &sem, SYNC_POLICY_FIFO, 0 )) return NULL; - if (InterlockedCompareExchange( (int *)&entry->sem, sem, NULL )) + if (InterlockedCompareExchange( (int *)&entry->sem, sem, 0 )) semaphore_destroy( mach_task_self(), sem ); } #else