Wrong Stack Pointer saved across exceptions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Affected files:
	 dlls/ntdll/signal_i386.c

ChangeLog
	Save UESP insread of ESP where UESP defined

Notes:
	Patch is exclusive of previous patch (Typecast of siginfo) both patches must 
be applied.
Index: signal_i386.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/signal_i386.c,v
retrieving revision 1.83
diff -u -3 -p -r1.83 signal_i386.c
--- signal_i386.c	14 Jan 2004 05:25:07 -0000	1.83
+++ signal_i386.c	15 Jan 2004 06:04:21 -0000
@@ -361,7 +361,9 @@ typedef struct
 #define EFL_sig(context)     ((context)->uc_mcontext.gregs[EFL])
 
 #define EIP_sig(context)     ((context)->uc_mcontext.gregs[EIP])
-#ifdef R_ESP
+#ifdef UESP
+#define ESP_sig(context)     ((context)->uc_mcontext.gregs[UESP])
+#elif defined(R_ESP)
 #define ESP_sig(context)     ((context)->uc_mcontext.gregs[R_ESP])
 #else
 #define ESP_sig(context)     ((context)->uc_mcontext.gregs[ESP])

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux