Alexandre Julliard : ntdll: Fix a compiler warning on macOS.

Alexandre Julliard julliard at winehq.org
Fri Nov 19 15:45:31 CST 2021


Module: wine
Branch: master
Commit: 470ac022f22a66b437a950c6eb22ac255ddbc7fd
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=470ac022f22a66b437a950c6eb22ac255ddbc7fd

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Nov 19 15:36:15 2021 +0100

ntdll: Fix a compiler warning on macOS.

Signed-off-by: Alexandre Julliard <julliard at 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




More information about the wine-cvs mailing list