From 7d35261d7c336673e3dcef2a5043b4b494b507c8 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Mon, 23 Jul 2012 20:24:34 +0000 Subject: [PATCH] [RTL] - Properly enable validity check in RtlLeaveCriticalSection for debug builds svn path=/trunk/; revision=56954 --- reactos/lib/rtl/critical.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/rtl/critical.c b/reactos/lib/rtl/critical.c index d640c0cd4d7..9bff77f4c60 100644 --- a/reactos/lib/rtl/critical.c +++ b/reactos/lib/rtl/critical.c @@ -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