ntdll: Fix a compiler warning on macOS.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-11-19 15:36:15 +01:00
parent 7d2a7b94aa
commit 470ac022f2
1 changed files with 1 additions and 1 deletions

View File

@ -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