Author: tfaber
Date: Mon Jul 23 20:24:34 2012
New Revision: 56954
URL:
http://svn.reactos.org/svn/reactos?rev=56954&view=rev
Log:
[RTL]
- Properly enable validity check in RtlLeaveCriticalSection for debug builds
Modified:
trunk/reactos/lib/rtl/critical.c
Modified: trunk/reactos/lib/rtl/critical.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/critical.c?rev=569…
==============================================================================
--- trunk/reactos/lib/rtl/critical.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/critical.c [iso-8859-1] Mon Jul 23 20:24:34 2012
@@ -613,7 +613,7 @@
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