2020-05-26 17:10:56 -07:00
|
|
|
From aa9cb874b1fb89601d6a5a735b442b8a7aa7b3aa Mon Sep 17 00:00:00 2001
|
2014-10-02 11:04:58 -07:00
|
|
|
From: Sebastian Lackner <sebastian@fds-team.de>
|
|
|
|
Date: Thu, 2 Oct 2014 19:44:31 +0200
|
2018-02-06 16:19:05 -08:00
|
|
|
Subject: [PATCH] kernel32: Add winediag message to show warning, that this
|
|
|
|
isn't vanilla wine.
|
2014-10-02 11:04:58 -07:00
|
|
|
|
|
|
|
---
|
2020-05-26 17:10:56 -07:00
|
|
|
dlls/kernel32/process.c | 11 +++++++++++
|
|
|
|
1 file changed, 11 insertions(+)
|
2014-10-02 11:04:58 -07:00
|
|
|
|
|
|
|
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
|
2020-05-26 17:10:56 -07:00
|
|
|
index 8f506fcf1320..45bfe7fe7b5d 100644
|
2014-10-02 11:04:58 -07:00
|
|
|
--- a/dlls/kernel32/process.c
|
|
|
|
+++ b/dlls/kernel32/process.c
|
2020-05-26 17:10:56 -07:00
|
|
|
@@ -60,6 +60,7 @@
|
2018-02-19 13:24:24 -08:00
|
|
|
|
2014-10-02 11:04:58 -07:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(process);
|
|
|
|
WINE_DECLARE_DEBUG_CHANNEL(relay);
|
|
|
|
+WINE_DECLARE_DEBUG_CHANNEL(winediag);
|
|
|
|
|
2019-10-22 15:40:18 -07:00
|
|
|
typedef struct
|
|
|
|
{
|
2020-05-26 17:10:56 -07:00
|
|
|
@@ -125,6 +126,7 @@ static inline DWORD call_process_entry( PEB *peb, LPTHREAD_START_ROUTINE entry )
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+extern const char * CDECL wine_get_version(void);
|
|
|
|
/***********************************************************************
|
|
|
|
* __wine_start_process
|
|
|
|
*
|
|
|
|
@@ -150,6 +152,15 @@ void CDECL __wine_start_process( LPTHREAD_START_ROUTINE entry, PEB *peb )
|
2014-10-02 11:04:58 -07:00
|
|
|
|
2018-02-06 16:19:05 -08:00
|
|
|
__TRY
|
|
|
|
{
|
|
|
|
+ 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());
|
2014-10-02 11:04:58 -07:00
|
|
|
+
|
2018-02-06 16:19:05 -08:00
|
|
|
+
|
|
|
|
if (!CheckRemoteDebuggerPresent( GetCurrentProcess(), &being_debugged ))
|
|
|
|
being_debugged = FALSE;
|
2017-01-24 04:10:56 -08:00
|
|
|
|
2014-10-02 11:04:58 -07:00
|
|
|
--
|
2020-05-26 17:10:56 -07:00
|
|
|
2.26.2
|
2014-10-02 11:04:58 -07:00
|
|
|
|