- Properly enable validity check in RtlLeaveCriticalSection for debug builds

svn path=/trunk/; revision=56954
This commit is contained in:
Thomas Faber 2012-07-23 20:24:34 +00:00
parent c487b06067
commit 7d35261d7c

View 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