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

This commit is contained in:
Alexandre Julliard 2010-01-27 11:16:45 +01:00
parent 85afcdbfb3
commit e42d1a8cc1
1 changed files with 5 additions and 1 deletions

View File

@ -146,7 +146,11 @@ static BOOL i386_stack_walk(struct cpu_stack_walk* csw, LPSTACKFRAME64 frame)
goto done_err;
}
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)))
{