Alexandre Julliard : dbghelp: Don't require a 16-bit stack for StackWalk.
Alexandre Julliard
julliard at winehq.org
Wed Jan 27 12:27:22 CST 2010
Module: wine
Branch: master
Commit: e42d1a8cc1b1b6b6e1417156cdc17fad250556b1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e42d1a8cc1b1b6b6e1417156cdc17fad250556b1
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Jan 27 11:16:45 2010 +0100
dbghelp: Don't require a 16-bit stack for StackWalk.
---
dlls/dbghelp/cpu_i386.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/dbghelp/cpu_i386.c b/dlls/dbghelp/cpu_i386.c
index a83f0fa..32a341f 100644
--- a/dlls/dbghelp/cpu_i386.c
+++ b/dlls/dbghelp/cpu_i386.c
@@ -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)))
{
More information about the wine-cvs
mailing list