mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +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,
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue