Re: [PATCH 5/5] ntoskrnl.exe: Implement IoAllocateMdl.
30 Sep
2012
30 Sep
'12
9:15 p.m.
Christian Costa <titan.costa(a)gmail.com> wrote:
PMDL WINAPI IoAllocateMdl( PVOID VirtualAddress, ULONG Length, BOOLEAN SecondaryBuffer, BOOLEAN ChargeQuota, PIRP Irp ) { PMDL mdl; + ULONG address = (ULONG)VirtualAddress;
This won't work on 64-bit.
+ mdl->StartVa = (PVOID)page_address;
and this.
+ mdl->ByteCount = Length; + mdl->ByteOffset = address - page_address;
Probably the type of size holding parameters/variables should be SIZE_T. -- Dmitry.
4817
Age (days ago)
4817
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov