Alexandre Julliard : winedbg: Avoid a crash when there'
s no backtrace to print.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Jun 15 07:12:30 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: d47dcbf05a0159a87234ac6e41ae011150019f09
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=d47dcbf05a0159a87234ac6e41ae011150019f09
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Jun 15 11:38:43 2006 +0200
winedbg: Avoid a crash when there's no backtrace to print.
---
programs/winedbg/stack.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/programs/winedbg/stack.c b/programs/winedbg/stack.c
index 10879ef..b976117 100644
--- a/programs/winedbg/stack.c
+++ b/programs/winedbg/stack.c
@@ -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);
}
More information about the wine-cvs
mailing list