Commit 61a9eef9 authored by Paul Chitescu's avatar Paul Chitescu Committed by Alexandre Julliard

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

parent d474d3f1
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment