dbghelp: Provide a non-NULL number of bytes read to ReadProcessMemoryProc64 callback.

This commit is contained in:
Paul Chitescu 2010-06-26 13:24:38 +03:00 committed by Alexandre Julliard
parent d474d3f142
commit 61a9eef9a1
1 changed files with 3 additions and 2 deletions

View File

@ -95,10 +95,11 @@ static inline void addr_64to32(const ADDRESS64* addr64, ADDRESS* addr32)
BOOL sw_read_mem(struct cpu_stack_walk* csw, DWORD64 addr, void* ptr, DWORD sz)
{
DWORD bytes_read = 0;
if (csw->is32)
return csw->u.s32.f_read_mem(csw->hProcess, addr, ptr, sz, NULL);
return csw->u.s32.f_read_mem(csw->hProcess, addr, ptr, sz, &bytes_read);
else
return csw->u.s64.f_read_mem(csw->hProcess, addr, ptr, sz, NULL);
return csw->u.s64.f_read_mem(csw->hProcess, addr, ptr, sz, &bytes_read);
}
DWORD64 sw_xlat_addr(struct cpu_stack_walk* csw, ADDRESS64* addr)