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:
parent
f12a775b27
commit
2ad09b0167
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue