[RTL]
authorThomas Faber <thomas.faber@reactos.org>
Mon, 23 Jul 2012 20:24:34 +0000 (20:24 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Mon, 23 Jul 2012 20:24:34 +0000 (20:24 +0000)
- Properly enable validity check in RtlLeaveCriticalSection for debug builds

svn path=/trunk/; revision=56954

reactos/lib/rtl/critical.c

index d640c0c..9bff77f 100644 (file)
@@ -613,7 +613,7 @@ NTSTATUS
 NTAPI
 RtlLeaveCriticalSection(PRTL_CRITICAL_SECTION CriticalSection)
 {
-#ifndef NDEBUG
+#if DBG
     HANDLE Thread = (HANDLE)NtCurrentTeb()->ClientId.UniqueThread;
 
     /* In win this case isn't checked. However it's a valid check so it should only