Fixed CcTryToAcquireBrokenMutex.
Modified: trunk/reactos/ntoskrnl/cc/view.c
_____
Modified: trunk/reactos/ntoskrnl/cc/view.c
--- trunk/reactos/ntoskrnl/cc/view.c 2005-11-26 15:23:25 UTC (rev
19638)
+++ trunk/reactos/ntoskrnl/cc/view.c 2005-11-26 16:04:33 UTC (rev
19639)
@@ -115,7 +115,7 @@
CcTryToAcquireBrokenMutex(PFAST_MUTEX FastMutex)
{
KeEnterCriticalRegion();
- if (InterlockedExchange(&FastMutex->Count, 0) == 1)
+ if (InterlockedCompareExchange(&FastMutex->Count, 0, 1) == 1)
{
FastMutex->Owner = KeGetCurrentThread();
return(TRUE);