winedbg: Avoid a crash when there's no backtrace to print.
This commit is contained in:
parent
3df59e4fee
commit
d47dcbf05a
|
@ -283,6 +283,7 @@ static void backtrace(void)
|
|||
}
|
||||
/* reset context to current stack frame */
|
||||
dbg_curr_thread->curr_frame = cf;
|
||||
if (!dbg_curr_thread->frames) return;
|
||||
stack_get_frame(dbg_curr_thread->curr_frame, &ihsf);
|
||||
SymSetContext(dbg_curr_process->handle, &ihsf, NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue