Christian Costa : ntoskrnl.exe: Improve IoAllocateMdl stub.

Alexandre Julliard julliard at winehq.org
Fri Sep 28 11:39:03 CDT 2012


Module: wine
Branch: master
Commit: 2a278ef5e4e49e0aaa23c21873cf9f1c2865dd59
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2a278ef5e4e49e0aaa23c21873cf9f1c2865dd59

Author: Christian Costa <titan.costa at gmail.com>
Date:   Thu Sep 27 23:12:28 2012 +0200

ntoskrnl.exe: Improve IoAllocateMdl stub.

---

 dlls/ntoskrnl.exe/ntoskrnl.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index 285541a..afcca48 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -396,8 +396,15 @@ PVOID WINAPI IoAllocateErrorLogEntry( PVOID IoObject, UCHAR EntrySize )
  */
 PMDL WINAPI IoAllocateMdl( PVOID VirtualAddress, ULONG Length, BOOLEAN SecondaryBuffer, BOOLEAN ChargeQuota, PIRP Irp )
 {
-    FIXME( "stub: %p, %u, %i, %i, %p\n", VirtualAddress, Length, SecondaryBuffer, ChargeQuota, Irp );
-    return NULL;
+    PMDL mdl;
+
+    FIXME("partial stub: %p, %u, %i, %i, %p\n", VirtualAddress, Length, SecondaryBuffer, ChargeQuota, Irp);
+
+    mdl = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(MDL));
+    if (!mdl)
+        return NULL;
+
+    return mdl;
 }
 
 




More information about the wine-cvs mailing list