ntdll: fix use of undefined VALGRIND_MAKE_WRITABLE in signal_i386.c

Giuseppe Bilotta giuseppe.bilotta at gmail.com
Fri Dec 21 08:48:00 CST 2007


signal_i386.c makes use of VALGRIND_MAKE_WRITABLE without checking if it's
defined. Fix by replacing the surrounding ifdef from HAVE_VALGRIND_MEMCHECK_H
to VALGRIND_MAKE_WRITABLE, mimicking usage in heap.c
---
 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 993936e..148c3a5 100644
--- a/dlls/ntdll/signal_i386.c
+++ b/dlls/ntdll/signal_i386.c
@@ -936,7 +936,7 @@ static EXCEPTION_RECORD *setup_exception( SIGCONTEXT *sigcontext, raise_func fun
     }
 
     stack--;  /* push the stack_layout structure */
-#ifdef HAVE_VALGRIND_MEMCHECK_H
+#ifdef VALGRIND_MAKE_WRITABLE
     VALGRIND_MAKE_WRITABLE(stack, sizeof(*stack));
 #endif
     stack->ret_addr     = (void *)0xdeadbabe;  /* raise_func must not return */
-- 
1.5.3.7




More information about the wine-patches mailing list