mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
RtlFreeHandle only should call RtlIsValidHandle in debug builds.
svn path=/trunk/; revision=17188
This commit is contained in:
@@ -126,9 +126,11 @@ BOOLEAN STDCALL
|
||||
RtlFreeHandle(PRTL_HANDLE_TABLE HandleTable,
|
||||
PRTL_HANDLE_TABLE_ENTRY Handle)
|
||||
{
|
||||
#if DBG
|
||||
/* check if handle is valid */
|
||||
if (RtlIsValidHandle(HandleTable, Handle))
|
||||
return FALSE;
|
||||
#endif
|
||||
|
||||
/* clear handle */
|
||||
memset(Handle, 0, HandleTable->SizeOfHandleTableEntry);
|
||||
|
||||
Reference in New Issue
Block a user