projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7905e74
)
RtlFreeHandle only should call RtlIsValidHandle in debug builds.
author
Thomas Bluemel
<thomas@reactsoft.com>
Sun, 7 Aug 2005 23:19:15 +0000
(23:19 +0000)
committer
Thomas Bluemel
<thomas@reactsoft.com>
Sun, 7 Aug 2005 23:19:15 +0000
(23:19 +0000)
svn path=/trunk/; revision=17188
reactos/lib/ntdll/rtl/handle.c
patch
|
blob
|
history
diff --git
a/reactos/lib/ntdll/rtl/handle.c
b/reactos/lib/ntdll/rtl/handle.c
index
9739ce0
..
3c6ba27
100644
(file)
--- a/
reactos/lib/ntdll/rtl/handle.c
+++ b/
reactos/lib/ntdll/rtl/handle.c
@@
-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);