Commit 28c503a9 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winedbg: fixed regression in 'info local' command.

parent 1d5adff0
...@@ -579,7 +579,7 @@ static BOOL CALLBACK info_locals_cb(SYMBOL_INFO* sym, ULONG size, void* ctx) ...@@ -579,7 +579,7 @@ static BOOL CALLBACK info_locals_cb(SYMBOL_INFO* sym, ULONG size, void* ctx)
else if (sym->Flags & SYMFLAG_LOCAL) else if (sym->Flags & SYMFLAG_LOCAL)
{ {
type.id = sym->TypeIndex; type.id = sym->TypeIndex;
v = ((IMAGEHLP_STACK_FRAME*)ctx)->FrameOffset + sym->Address; v = (ULONG)ctx + sym->Address;
if (!dbg_read_memory((void*)v, &val, sizeof(val))) if (!dbg_read_memory((void*)v, &val, sizeof(val)))
{ {
......
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