- Pass correct parameters to MmLocateMemoryAreaByAddress in MmLockPagableDataSection.

- Change UNIMPLEMENTED to DPRINT1 in MmLockPagableSectionByHandle.

svn path=/trunk/; revision=14566
This commit is contained in:
Filip Navara 2005-04-10 04:02:54 +00:00
parent b1cf1bfa05
commit 56f3c4ed58

View file

@ -40,7 +40,7 @@ VOID STDCALL
MmLockPagableSectionByHandle(IN PVOID ImageSectionHandle)
{
// MmLockMemoryArea((MEMORY_AREA *)ImageSectionHandle);
UNIMPLEMENTED;
DPRINT1("MmLockPagableSectionByHandle is unimplemented\n");
}
@ -63,7 +63,8 @@ PVOID STDCALL
MmLockPagableDataSection(IN PVOID AddressWithinSection)
{
PVOID Handle;
Handle = MmLocateMemoryAreaByAddress(NULL, AddressWithinSection);
Handle = MmLocateMemoryAreaByAddress(MmGetKernelAddressSpace(),
AddressWithinSection);
MmLockPagableSectionByHandle(Handle);
return(Handle);
}