- Fix compilation when NDEBUG is not defined

svn path=/trunk/; revision=50966
This commit is contained in:
Jérôme Gardou 2011-03-04 03:42:38 +00:00
parent 54010b7e9e
commit ab803f82ce

View file

@ -604,7 +604,7 @@ NTAPI
RtlLeaveCriticalSection(PRTL_CRITICAL_SECTION CriticalSection)
{
#ifndef NDEBUG
HANDLE Thread = (HANDLE)NtCurrentTeb()->Cid.UniqueThread;
HANDLE Thread = (HANDLE)NtCurrentTeb()->ClientId.UniqueThread;
/* In win this case isn't checked. However it's a valid check so it should only
be performed in debug builds! */