[NTOS:MM]

Addendum to r74263:
- Really only warn once in MmLockPageableDataSection/MmUnlockPageableImageSection, not on every 256th call

svn path=/trunk/; revision=74291
This commit is contained in:
Sylvain Petreolle 2017-04-09 12:26:16 +00:00
parent d1fa8b8908
commit 35eb4001b2

View file

@ -36,7 +36,7 @@ VOID
NTAPI NTAPI
MmUnlockPageableImageSection(IN PVOID ImageSectionHandle) 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 // We should just find the section and call MmLockPageableSectionByHandle
// //
static BOOLEAN Warn; if (!Warn++) UNIMPLEMENTED; static ULONG Warn; if (!Warn++) UNIMPLEMENTED;
return AddressWithinSection; return AddressWithinSection;
} }