ntdll: Fix a compiler warning on macOS.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7d2a7b94aa
commit
470ac022f2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue