André Hentschel : dbghelp: Only declare deltapc for i386.

Alexandre Julliard julliard at winehq.org
Wed Jun 29 15:47:43 CDT 2011


Module: wine
Branch: master
Commit: 3a183a42df95c915254ae1ca6f2d51e505082b2d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3a183a42df95c915254ae1ca6f2d51e505082b2d

Author: André Hentschel <nerv at dawncrow.de>
Date:   Tue Jun 28 23:11:02 2011 +0200

dbghelp: Only declare deltapc for i386.

---

 dlls/dbghelp/cpu_i386.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/dbghelp/cpu_i386.c b/dlls/dbghelp/cpu_i386.c
index 8fe5eac..70ee9e6 100644
--- a/dlls/dbghelp/cpu_i386.c
+++ b/dlls/dbghelp/cpu_i386.c
@@ -157,8 +157,8 @@ static BOOL i386_stack_walk(struct cpu_stack_walk* csw, LPSTACKFRAME64 frame, CO
     WORD                val16;
     DWORD               val32;
     BOOL                do_switch;
-    unsigned            deltapc;
 #ifdef __i386__
+    unsigned            deltapc;
     CONTEXT             _context;
 #endif
 
@@ -174,6 +174,7 @@ static BOOL i386_stack_walk(struct cpu_stack_walk* csw, LPSTACKFRAME64 frame, CO
           wine_dbgstr_longlong(curr_count),
           (void*)(DWORD_PTR)curr_switch, (void*)(DWORD_PTR)next_switch);
 
+#ifdef __i386__
     /* if we're at first call (which doesn't actually unwind, it just computes ReturnPC,
      * or if we're doing the first real unwind (count == 1), then we can directly use
      * eip. otherwise, eip is *after* the insn that actually made the call to
@@ -184,7 +185,6 @@ static BOOL i386_stack_walk(struct cpu_stack_walk* csw, LPSTACKFRAME64 frame, CO
      */
     deltapc = curr_count <= 1 ? 0 : 1;
 
-#ifdef __i386__
     if (!context)
     {
         /* setup a pseudo context for the rest of the code (esp. unwinding) */




More information about the wine-cvs mailing list