[NTOS:MM]
authorSylvain Petreolle <spetreolle@yahoo.fr>
Sun, 9 Apr 2017 12:26:16 +0000 (12:26 +0000)
committerSylvain Petreolle <spetreolle@yahoo.fr>
Sun, 9 Apr 2017 12:26:16 +0000 (12:26 +0000)
Addendum to r74263:
- Really only warn once in MmLockPageableDataSection/MmUnlockPageableImageSection, not on every 256th call

svn path=/trunk/; revision=74291

reactos/ntoskrnl/mm/ARM3/drvmgmt.c

index 9dbdd30..0d4a5b1 100644 (file)
@@ -36,7 +36,7 @@ VOID
 NTAPI
 MmUnlockPageableImageSection(IN PVOID ImageSectionHandle)
 {
-    UNIMPLEMENTED;
+    static ULONG Warn; if (!Warn++) UNIMPLEMENTED;
 }
 
 /*
@@ -59,7 +59,7 @@ MmLockPageableDataSection(IN PVOID AddressWithinSection)
     //
     // We should just find the section and call MmLockPageableSectionByHandle
     //
-    static BOOLEAN Warn; if (!Warn++) UNIMPLEMENTED;
+    static ULONG Warn; if (!Warn++) UNIMPLEMENTED;
     return AddressWithinSection;
 }