winedbg: Avoid a crash when there's no backtrace to print.

This commit is contained in:
Alexandre Julliard 2006-06-15 11:38:43 +02:00
parent 3df59e4fee
commit d47dcbf05a
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}