Christian Costa titan.costa@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.