From 61a9eef9a1c0a72e6571742dbb830f7b22c05230 Mon Sep 17 00:00:00 2001 From: Paul Chitescu Date: Sat, 26 Jun 2010 13:24:38 +0300 Subject: [PATCH] dbghelp: Provide a non-NULL number of bytes read to ReadProcessMemoryProc64 callback. --- dlls/dbghelp/stack.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/dbghelp/stack.c b/dlls/dbghelp/stack.c index e0180baddf5..3e1ff725470 100644 --- a/dlls/dbghelp/stack.c +++ b/dlls/dbghelp/stack.c @@ -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)