Re: [PATCH 5/5] ntoskrnl.exe: Implement IoAllocateMdl.
1 Oct
2012
1 Oct
'12
2:15 a.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.
4910
Age (days ago)
4910
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov