dbghelp: Provide a non-NULL number of bytes read to ReadProcessMemoryProc64 callback.
This commit is contained in:
parent
d474d3f142
commit
61a9eef9a1
|
@ -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)
|
BOOL sw_read_mem(struct cpu_stack_walk* csw, DWORD64 addr, void* ptr, DWORD sz)
|
||||||
{
|
{
|
||||||
|
DWORD bytes_read = 0;
|
||||||
if (csw->is32)
|
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
|
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)
|
DWORD64 sw_xlat_addr(struct cpu_stack_walk* csw, ADDRESS64* addr)
|
||||||
|
|
Loading…
Reference in New Issue