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.