RtlFreeHandle only should call RtlIsValidHandle in debug builds.
authorThomas Bluemel <thomas@reactsoft.com>
Sun, 7 Aug 2005 23:19:15 +0000 (23:19 +0000)
committerThomas 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

index 9739ce0..3c6ba27 100644 (file)
@@ -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);