From: Eric Pouech eric.pouech@gmail.com
It's bound to debugger's CPU not debuggee's.
We should eventually get rid of dbghelp_current_cpu, but but that can wait after 8.0 (mainly in minidump.c).
Signed-off-by: Eric Pouech eric.pouech@gmail.com --- dlls/dbghelp/msc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/dbghelp/msc.c b/dlls/dbghelp/msc.c index ebacfc49bfd..9debc34e77c 100644 --- a/dlls/dbghelp/msc.c +++ b/dlls/dbghelp/msc.c @@ -2862,7 +2862,7 @@ static void pdb_location_compute(struct process* pcs, case S_DEFRANGE_FRAMEPOINTER_REL: case S_DEFRANGE_FRAMEPOINTER_REL_FULL_SCOPE: loc->kind = loc_regrel; - loc->reg = dbghelp_current_cpu->frame_regno; + loc->reg = modfmt->module->cpu->frame_regno; loc->offset = locinfo->offset; return; }