Commit ced42c44 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dbghelp: Fix sign extension issues on 32bit compilation.

parent 40213362
......@@ -3761,7 +3761,7 @@ static void apply_frame_state(const struct module* module, struct cpu_stack_walk
*cfa = eval_expression(module, csw, (const unsigned char*)state->cfa_offset, context);
break;
default:
*cfa = get_context_reg(module, csw, context, state->cfa_reg) + state->cfa_offset;
*cfa = get_context_reg(module, csw, context, state->cfa_reg) + (LONG_PTR)state->cfa_offset;
break;
}
if (!*cfa) return;
......@@ -3775,7 +3775,7 @@ static void apply_frame_state(const struct module* module, struct cpu_stack_walk
case RULE_SAME:
break;
case RULE_CFA_OFFSET:
set_context_reg(module, csw, &new_context, i, *cfa + state->regs[i], TRUE);
set_context_reg(module, csw, &new_context, i, *cfa + (LONG_PTR)state->regs[i], TRUE);
break;
case RULE_OTHER_REG:
copy_context_reg(module, csw, &new_context, i, context, state->regs[i]);
......
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