[PATCH 2/2] ntoskrnl.exe: Implement MmMapLockedPagesSpecifyCache & MmUnmapLockedPages and improve MmUnlockPages stub.

Dmitry Timoshkov dmitry at baikal.ru
Thu Oct 4 00:28:00 CDT 2012


Christian Costa <titan.costa at gmail.com> wrote:

> +    /* Read memory from the client process memory */
> +    if (!ReadProcessMemory(process, (LPCVOID)((ULONG)(mdl->StartVa) + mdl->ByteOffset), (LPVOID)(((ULONG)mdl->MappedSystemVa) + mdl->ByteOffset), mdl->ByteCount, &bytes))

This kind of casts is broken.

-- 
Dmitry.



More information about the wine-devel mailing list