Fixed CcTryToAcquireBrokenMutex.

svn path=/trunk/; revision=19639
This commit is contained in:
Hartmut Birr 2005-11-26 16:04:33 +00:00
parent 623d562f09
commit b5831e218d

View file

@ -115,7 +115,7 @@ FASTCALL
CcTryToAcquireBrokenMutex(PFAST_MUTEX FastMutex)
{
KeEnterCriticalRegion();
if (InterlockedExchange(&FastMutex->Count, 0) == 1)
if (InterlockedCompareExchange(&FastMutex->Count, 0, 1) == 1)
{
FastMutex->Owner = KeGetCurrentThread();
return(TRUE);