Replaced a -- with an InterlockedDecrement
authorPhillip Susi <phreak@iag.net>
Mon, 17 Apr 2000 03:09:04 +0000 (03:09 +0000)
committerPhillip Susi <phreak@iag.net>
Mon, 17 Apr 2000 03:09:04 +0000 (03:09 +0000)
svn path=/trunk/; revision=1123

reactos/lib/kernel32/synch/critical.c

index 03f6d20..c6e2de2 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: critical.c,v 1.6 1999/09/27 20:58:46 ariadne Exp $
+/* $Id: critical.c,v 1.7 2000/04/17 03:09:04 phreak Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS system libraries
@@ -72,7 +72,7 @@ LeaveCriticalSection(LPCRITICAL_SECTION lpCriticalSection)
                        ReleaseSemaphore( lpCriticalSection->LockSemaphore,1,NULL);
        }
 
-       lpCriticalSection->LockCount--;
+       InterlockedDecrement( &lpCriticalSection->LockCount );
 }