[PATCH 5/5] ntoskrnl.exe: Implement IoAllocateMdl.
Dmitry Timoshkov
dmitry at baikal.ru
Sun Sep 30 21:15:01 CDT 2012
Christian Costa <titan.costa at 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.
More information about the wine-devel
mailing list