From 2ad09b01673381261815bfc804a2f69ce4d85f86 Mon Sep 17 00:00:00 2001 From: Zhennan Cai Date: Fri, 27 Nov 2020 10:16:57 +0800 Subject: [PATCH] ntoskrnl.exe: Fix a reversed spin lock loop condition. Signed-off-by: Zhennan Cai Signed-off-by: Alexandre Julliard --- dlls/ntoskrnl.exe/sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ntoskrnl.exe/sync.c b/dlls/ntoskrnl.exe/sync.c index 0ddb1b353c5..671398594e8 100644 --- a/dlls/ntoskrnl.exe/sync.c +++ b/dlls/ntoskrnl.exe/sync.c @@ -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(); }