Module: wine Branch: master Commit: ad21db2e1ee32a94bbea5767d2c11e93694d6cd8 URL: https://gitlab.winehq.org/wine/wine/-/commit/ad21db2e1ee32a94bbea5767d2c11e9... Author: Eric Pouech <eric.pouech(a)gmail.com> Date: Mon Jan 23 11:20:39 2023 +0100 dbghelp: Don't use dbghelp_current_cpu. It's bound to debugger's CPU not debuggee's. Signed-off-by: Eric Pouech <eric.pouech(a)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; }