mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
RtlFreeHandle only should call RtlIsValidHandle in debug builds.
svn path=/trunk/; revision=17188
This commit is contained in:
parent
7905e74e59
commit
ae86070caa
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue