From: Rémi Bernon rbernon@codeweavers.com
--- dlls/ntdll/unix/loader.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/ntdll/unix/loader.c b/dlls/ntdll/unix/loader.c index 06959fa95df..c794fed0278 100644 --- a/dlls/ntdll/unix/loader.c +++ b/dlls/ntdll/unix/loader.c @@ -91,6 +91,9 @@ extern char **environ; #include "wine/list.h" #include "ntsyscalls.h" #include "wine/debug.h" +#ifdef HAVE_VALGRIND_VALGRIND_H +# include <valgrind/valgrind.h> +#endif
WINE_DEFAULT_DEBUG_CHANNEL(module);
@@ -500,7 +503,7 @@ char *get_alternate_wineloader( WORD machine )
static void preloader_exec( char **argv ) { - if (use_preloader) + if (use_preloader && !RUNNING_ON_VALGRIND) { static const char *preloader = "wine-preloader"; char *p;