[RXCE]
authorPierre Schweitzer <pierre@reactos.org>
Sat, 27 May 2017 17:41:58 +0000 (17:41 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 27 May 2017 17:41:58 +0000 (17:41 +0000)
Make RxpTrackDereference()/RxpTrackReference() when they're noop.

CORE-11327

svn path=/trunk/; revision=74684

reactos/sdk/lib/drivers/rxce/rxce.c

index d34165a..d293719 100644 (file)
@@ -4611,8 +4611,15 @@ RxpTrackDereference(
     _In_ ULONG Line,
     _In_ PVOID Instance)
 {
     _In_ ULONG Line,
     _In_ PVOID Instance)
 {
+    PAGED_CODE();
+
+    if (!BooleanFlagOn(RdbssReferenceTracingValue, TraceType))
+    {
+        return TRUE;
+    }
+
     UNIMPLEMENTED;
     UNIMPLEMENTED;
-    return FALSE;
+    return TRUE;
 }
 
 VOID
 }
 
 VOID
@@ -4622,6 +4629,11 @@ RxpTrackReference(
     _In_ ULONG Line,
     _In_ PVOID Instance)
 {
     _In_ ULONG Line,
     _In_ PVOID Instance)
 {
+    if (!BooleanFlagOn(RdbssReferenceTracingValue, TraceType))
+    {
+        return;
+    }
+
     UNIMPLEMENTED;
 }
 
     UNIMPLEMENTED;
 }