Christian Costa titan.costa@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.
Le 04/10/2012 07:28, Dmitry Timoshkov a écrit :
Christian Costa titan.costa@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.
2nd version of the patch fixes the casts.