mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:12:57 +00:00
Fixed a bug in ExAquireFastMutexUnsafe
svn path=/trunk/; revision=2969
This commit is contained in:
parent
daad760238
commit
10100f9649
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: fmutex.c,v 1.13 2002/05/17 23:01:56 dwelch Exp $
|
/* $Id: fmutex.c,v 1.14 2002/05/19 13:53:02 chorns Exp $
|
||||||
*
|
*
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
* FILE: ntoskrnl/ex/fmutex.c
|
* FILE: ntoskrnl/ex/fmutex.c
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
VOID FASTCALL
|
VOID FASTCALL
|
||||||
ExAcquireFastMutexUnsafe(PFAST_MUTEX FastMutex)
|
ExAcquireFastMutexUnsafe(PFAST_MUTEX FastMutex)
|
||||||
{
|
{
|
||||||
assert(FastMutex->Owner != KeGetCurrentThread());
|
assert(FastMutex->Owner == KeGetCurrentThread());
|
||||||
InterlockedIncrement(&FastMutex->Contention);
|
InterlockedIncrement(&FastMutex->Contention);
|
||||||
while (InterlockedExchange(&FastMutex->Count, 0) == 0)
|
while (InterlockedExchange(&FastMutex->Count, 0) == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue