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