From a41dac0b19ec2ba3807da4ac42d77717d79f1115 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Thu, 2 Oct 2014 19:44:31 +0200 Subject: kernel32: Add winediag message to show warning, that this isn't vanilla wine. --- dlls/kernel32/process.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c index b0c06e3..a2c1d4c 100644 --- a/dlls/kernel32/process.c +++ b/dlls/kernel32/process.c @@ -65,6 +65,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(process); WINE_DECLARE_DEBUG_CHANNEL(file); WINE_DECLARE_DEBUG_CHANNEL(relay); +WINE_DECLARE_DEBUG_CHANNEL(winediag); #ifdef __APPLE__ extern char **__wine_get_main_environment(void); @@ -1099,6 +1100,14 @@ static DWORD WINAPI start_process( PEB *peb ) DPRINTF( "%04x:Starting process %s (entryproc=%p)\n", GetCurrentThreadId(), debugstr_w(peb->ProcessParameters->ImagePathName.Buffer), entry ); + if (CreateEventA(0, 0, 0, "__winestaging_warn_event") && GetLastError() != ERROR_ALREADY_EXISTS) + { + FIXME_(winediag)("Wine Staging %s is a testing version containing experimental patches.\n", wine_get_version()); + FIXME_(winediag)("Please mention your exact version when filing bug reports on winehq.org.\n"); + } + else + WARN_(winediag)("Wine Staging %s is a testing version containing experimental patches.\n", wine_get_version()); + SetLastError( 0 ); /* clear error code */ if (peb->BeingDebugged) DbgBreakPoint(); return call_process_entry( peb, entry ); -- 2.5.1