Ge van Geldorp wrote:
>diff --git a/programs/winedbg/stack.c b/programs/winedbg/stack.c
>index b976117..c2dec5f 100644
>--- a/programs/winedbg/stack.c
>+++ b/programs/winedbg/stack.c
>@@ -127,9 +127,14 @@ BOOL stack_get_current_symbol(SYMBOL_INF
> static BOOL CALLBACK stack_read_mem(HANDLE hProc, DWORD addr,
> PVOID buffer, DWORD size, PDWORD written)
> {
>+ SIZE_T sz;
>+ BOOL ret;
>+
> struct dbg_process* pcs = dbg_get_process_h(hProc);
> if (!pcs) return FALSE;
>- return pcs->process_io->read(hProc, (const void*)addr, buffer, size, written);
>+ ret = pcs->process_io->read(hProc, (const void*)addr, buffer, size, &sz);
>+ if (written != NULL) *written = sz;
>+ return ret;
> }
>
> /******************************************************************
>
>
this one is questionnable. Now that we have stackwalk64 implemented (I'm
not saying it works flawlessly on 64bit machines), it may be more
interesting here to use the 64 bit version of the call back
A+