From 50de0ce1333636736f7bb27ad190693c45f207ae Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Mon, 8 Jan 2007 07:43:49 +0000 Subject: [PATCH] - Fix a bug in ExReleasePushLock which broken contention checking. svn path=/trunk/; revision=25366 --- reactos/ntoskrnl/include/internal/ex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/include/internal/ex.h b/reactos/ntoskrnl/include/internal/ex.h index e7c2f99c1dd..9869c189bb0 100644 --- a/reactos/ntoskrnl/include/internal/ex.h +++ b/reactos/ntoskrnl/include/internal/ex.h @@ -790,7 +790,7 @@ ExReleasePushLock(PEX_PUSH_LOCK PushLock) /* Check if nobody is waiting on us and try clearing the lock here */ if ((OldValue.Waiting) || - (ExpChangePushlock(PushLock, NewValue.Ptr, OldValue.Ptr) == + (ExpChangePushlock(PushLock, NewValue.Ptr, OldValue.Ptr) != OldValue.Ptr)) { /* We have waiters, use the long path */