ntoskrnl.exe: Improve IoAllocateMdl stub.

This commit is contained in:
Christian Costa 2012-09-27 23:12:28 +02:00 committed by Alexandre Julliard
parent fb383cd5a6
commit 2a278ef5e4
1 changed files with 9 additions and 2 deletions

View File

@ -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;
}