- Pass correct parameters to MmLocateMemoryAreaByAddress in MmLockPagableDataSection.
- Change UNIMPLEMENTED to DPRINT1 in MmLockPagableSectionByHandle.
Modified: trunk/reactos/ntoskrnl/mm/drvlck.c

Modified: trunk/reactos/ntoskrnl/mm/drvlck.c
--- trunk/reactos/ntoskrnl/mm/drvlck.c	2005-04-09 22:37:15 UTC (rev 14565)
+++ trunk/reactos/ntoskrnl/mm/drvlck.c	2005-04-10 04:02:54 UTC (rev 14566)
@@ -40,7 +40,7 @@
 MmLockPagableSectionByHandle(IN PVOID ImageSectionHandle)
 {
    //  MmLockMemoryArea((MEMORY_AREA *)ImageSectionHandle);
-   UNIMPLEMENTED;
+   DPRINT1("MmLockPagableSectionByHandle is unimplemented\n");
 }
 
 
@@ -63,7 +63,8 @@
 MmLockPagableDataSection(IN PVOID AddressWithinSection)
 {
    PVOID Handle;
-   Handle = MmLocateMemoryAreaByAddress(NULL, AddressWithinSection);
+   Handle = MmLocateMemoryAreaByAddress(MmGetKernelAddressSpace(),
+                                        AddressWithinSection);
    MmLockPagableSectionByHandle(Handle);
    return(Handle);
 }