ntoskrnl.exe: Fix a reversed spin lock loop condition.

Signed-off-by: Zhennan Cai <zhennan5991@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zhennan Cai 2020-11-27 10:16:57 +08:00 committed by Alexandre Julliard
parent f12a775b27
commit 2ad09b0167
1 changed files with 1 additions and 1 deletions

View File

@ -555,7 +555,7 @@ static inline void small_pause(void)
void WINAPI KeAcquireSpinLockAtDpcLevel( KSPIN_LOCK *lock )
{
TRACE("lock %p.\n", lock);
while (!InterlockedCompareExchangePointer( (void **)lock, (void *)1, (void *)0 ))
while (InterlockedCompareExchangePointer( (void **)lock, (void *)1, (void *)0 ))
small_pause();
}