[NTOS:MM]
authorThomas Faber <thomas.faber@reactos.org>
Sun, 2 Apr 2017 08:37:39 +0000 (08:37 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 2 Apr 2017 08:37:39 +0000 (08:37 +0000)
- Really only warn once in MmSecureVirtualMemory/MmUnsecureVirtualMemory, not on every 256th call

svn path=/trunk/; revision=74263

reactos/ntoskrnl/mm/ARM3/virtual.c

index 95c1571..19debba 100644 (file)
@@ -2670,7 +2670,7 @@ MmSecureVirtualMemory(IN PVOID Address,
                       IN SIZE_T Length,
                       IN ULONG Mode)
 {
-    static BOOLEAN Warn; if (!Warn++) UNIMPLEMENTED;
+    static ULONG Warn; if (!Warn++) UNIMPLEMENTED;
     return Address;
 }
 
@@ -2681,7 +2681,7 @@ VOID
 NTAPI
 MmUnsecureVirtualMemory(IN PVOID SecureMem)
 {
-    static BOOLEAN Warn; if (!Warn++) UNIMPLEMENTED;
+    static ULONG Warn; if (!Warn++) UNIMPLEMENTED;
 }
 
 /* SYSTEM CALLS ***************************************************************/