[ros-diffs] [navaraf] 14566: - Pass correct parameters to MmLocateMemoryAreaByAddress in MmLockPagableDataSection.

navaraf at svn.reactos.com navaraf at svn.reactos.com
Sun Apr 10 06:02:56 CEST 2005


- 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);
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050410/3ad7c5e5/attachment.html


More information about the Ros-diffs mailing list