mirror of
https://github.com/reactos/reactos.git
synced 2025-07-24 17:24:01 +00:00
Fixed CcTryToAcquireBrokenMutex.
svn path=/trunk/; revision=19639
This commit is contained in:
parent
623d562f09
commit
b5831e218d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue