[Wine-patches] [4/10] ntoskrnl.exe: Add stubs for MmMapLockedPages and MmUnmapLockedPages.

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Пн Ноя 24 19:00:17 MSK 2008


----------- следующая часть -----------
From 66a90deeff67705bc54d851ad39d6691fbf1ddff Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Wed, 8 Oct 2008 13:44:14 +0400
Subject: [PATCH] ntoskrnl.exe: Add stubs for MmMapLockedPages and MmUnmapLockedPages.

---
 dlls/ntoskrnl.exe/ntoskrnl.c        |   18 ++++++++++++++++++
 dlls/ntoskrnl.exe/ntoskrnl.exe.spec |    4 ++--
 2 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index e2b8443..f68108d 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -1361,6 +1361,16 @@ BOOLEAN WINAPI MmIsAddressValid(PVOID VirtualAddress)
     return !IsBadWritePtr(VirtualAddress, 1);
 }
 
+ /***********************************************************************
+ *           MmMapLockedPages   (NTOSKRNL.EXE.@)
+ */
+PVOID WINAPI MmMapLockedPages(PMDL MemoryDescriptorList,
+        KPROCESSOR_MODE AccessMode)
+{
+    FIXME("%p %d\n", MemoryDescriptorList, AccessMode);
+    return NULL;
+}
+
 /***********************************************************************
  *           MmPageEntireDriver   (NTOSKRNL.EXE.@)
  */
@@ -1388,6 +1398,14 @@ void WINAPI MmResetDriverPaging(PVOID AddrInSection)
     TRACE("%p\n", AddrInSection);
 }
 
+/***********************************************************************
+ *           MmUnmapLockedPages   (NTOSKRNL.EXE.@)
+ */
+void WINAPI MmUnmapLockedPages(PVOID BaseAddress, PMDL MemoryDescriptorList)
+{
+    TRACE("%p %p\n", BaseAddress, MemoryDescriptorList);
+}
+
 
  /***********************************************************************
  *           ObReferenceObjectByHandle    (NTOSKRNL.EXE.@)
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
index 669743b..cd36def 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
@@ -689,7 +689,7 @@
 @ stub MmLockPagableImageSection
 @ stub MmLockPagableSectionByHandle
 @ stub MmMapIoSpace
-@ stub MmMapLockedPages
+@ stdcall MmMapLockedPages(ptr long)
 @ stub MmMapLockedPagesSpecifyCache
 @ stub MmMapLockedPagesWithReservedMapping
 @ stub MmMapMemoryDumpMdl
@@ -719,7 +719,7 @@
 @ stub MmUnlockPagableImageSection
 @ stdcall MmUnlockPages(ptr)
 @ stub MmUnmapIoSpace
-@ stub MmUnmapLockedPages
+@ stdcall MmUnmapLockedPages(ptr ptr)
 @ stub MmUnmapReservedMapping
 @ stub MmUnmapVideoDisplay
 @ stub MmUnmapViewInSessionSpace
-- 
1.6.0.2.GIT



Подробная информация о списке рассылки Wine-patches