Commit d47dcbf0 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 3df59e4f
......@@ -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);
}
......
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