Commit e42d1a8c authored by Alexandre Julliard's avatar Alexandre Julliard

dbghelp: Don't require a 16-bit stack for StackWalk.

parent 85afcdbf
...@@ -146,7 +146,11 @@ static BOOL i386_stack_walk(struct cpu_stack_walk* csw, LPSTACKFRAME64 frame) ...@@ -146,7 +146,11 @@ static BOOL i386_stack_walk(struct cpu_stack_walk* csw, LPSTACKFRAME64 frame)
goto done_err; goto done_err;
} }
next_switch = p; next_switch = p;
if (curr_mode == stm_16bit) if (!next_switch) /* no 16-bit stack */
{
curr_switch = 0;
}
else if (curr_mode == stm_16bit)
{ {
if (!sw_read_mem(csw, next_switch, &frame32, sizeof(frame32))) if (!sw_read_mem(csw, next_switch, &frame32, sizeof(frame32)))
{ {
......
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