RtlFreeHandle only should call RtlIsValidHandle in debug builds.

svn path=/trunk/; revision=17188
This commit is contained in:
Thomas Bluemel 2005-08-07 23:19:15 +00:00
parent 7905e74e59
commit ae86070caa

View file

@ -126,9 +126,11 @@ BOOLEAN STDCALL
RtlFreeHandle(PRTL_HANDLE_TABLE HandleTable, RtlFreeHandle(PRTL_HANDLE_TABLE HandleTable,
PRTL_HANDLE_TABLE_ENTRY Handle) PRTL_HANDLE_TABLE_ENTRY Handle)
{ {
#if DBG
/* check if handle is valid */ /* check if handle is valid */
if (RtlIsValidHandle(HandleTable, Handle)) if (RtlIsValidHandle(HandleTable, Handle))
return FALSE; return FALSE;
#endif
/* clear handle */ /* clear handle */
memset(Handle, 0, HandleTable->SizeOfHandleTableEntry); memset(Handle, 0, HandleTable->SizeOfHandleTableEntry);