Alexandre Julliard : ntdll: Don't fetch extended FPU context if there' s no FPU context at all.
Alexandre Julliard
julliard at winehq.org
Tue Jan 22 06:01:44 CST 2008
Module: wine
Branch: master
Commit: 0375b7a1f323b0bf77c08b7df57a8153443eae91
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0375b7a1f323b0bf77c08b7df57a8153443eae91
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Jan 22 10:20:12 2008 +0100
ntdll: Don't fetch extended FPU context if there's no FPU context at all.
---
dlls/ntdll/signal_i386.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ntdll/signal_i386.c b/dlls/ntdll/signal_i386.c
index 172d362..a6ca6fd 100644
--- a/dlls/ntdll/signal_i386.c
+++ b/dlls/ntdll/signal_i386.c
@@ -125,7 +125,7 @@ typedef ucontext_t SIGCONTEXT;
#define ERROR_sig(context) ((context)->uc_mcontext.gregs[REG_ERR])
#define FPU_sig(context) ((FLOATING_SAVE_AREA*)((context)->uc_mcontext.fpregs))
-#define FPUX_sig(context) ((context)->uc_mcontext.fpregs->status >> 16 ? NULL : (XMM_SAVE_AREA32 *)(FPU_sig(context) + 1))
+#define FPUX_sig(context) (FPU_sig(context) && !((context)->uc_mcontext.fpregs->status >> 16) ? (XMM_SAVE_AREA32 *)(FPU_sig(context) + 1) : NULL)
#define VM86_EAX 0 /* the %eax value while vm86_enter is executing */
More information about the wine-cvs
mailing list