- Pass correct parameters to MmLocateMemoryAreaByAddress in MmLockPagableDataSection.
authorFilip Navara <filip.navara@gmail.com>
Sun, 10 Apr 2005 04:02:54 +0000 (04:02 +0000)
committerFilip Navara <filip.navara@gmail.com>
Sun, 10 Apr 2005 04:02:54 +0000 (04:02 +0000)
- Change UNIMPLEMENTED to DPRINT1 in MmLockPagableSectionByHandle.

svn path=/trunk/; revision=14566

reactos/ntoskrnl/mm/drvlck.c

index ec3e43c..8da058c 100644 (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);
 }