[ros-diffs] [weiden] 17188: RtlFreeHandle only should call RtlIsValidHandle in debug builds.

weiden at svn.reactos.com weiden at svn.reactos.com
Mon Aug 8 01:19:28 CEST 2005


RtlFreeHandle only should call RtlIsValidHandle in debug builds.
Modified: trunk/reactos/lib/ntdll/rtl/handle.c
  _____  

Modified: trunk/reactos/lib/ntdll/rtl/handle.c
--- trunk/reactos/lib/ntdll/rtl/handle.c	2005-08-07 23:18:40 UTC
(rev 17187)
+++ trunk/reactos/lib/ntdll/rtl/handle.c	2005-08-07 23:19:15 UTC
(rev 17188)
@@ -126,9 +126,11 @@

 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);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050808/92d5b8d1/attachment.html


More information about the Ros-diffs mailing list