From 62fe4062926ecc59b121f8af2dabd67561d214cb Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Sat, 12 Mar 2005 17:02:43 +0000 Subject: [PATCH] Alex Ionescu Fix wrong assertion. svn path=/trunk/; revision=13970 --- reactos/ntoskrnl/ke/spinlock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/ke/spinlock.c b/reactos/ntoskrnl/ke/spinlock.c index 34728760694..baa0d0ac24d 100644 --- a/reactos/ntoskrnl/ke/spinlock.c +++ b/reactos/ntoskrnl/ke/spinlock.c @@ -178,7 +178,7 @@ KiAcquireSpinLock(PKSPIN_LOCK SpinLock) * FIXME: This depends on gcc assembling this test to a single load from * the spinlock's value. */ - ASSERT(*SpinLock == 0 || 1); + ASSERT(*SpinLock == 0 || *SpinLock == 1); while ((i = InterlockedExchangeUL(SpinLock, 1)) == 1) {