2021-04-26 16:21:13 -07:00
|
|
|
From e51b05c3a9d03e4dd84a107a30841d95f8a519c3 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
|
2020-09-02 07:38:53 -07:00
|
|
|
Subject: [PATCH] ntdll: Print a warning message specifying the wine-staging
|
|
|
|
branch name and version.
|
2014-10-02 11:04:58 -07:00
|
|
|
|
|
|
|
---
|
2021-04-26 16:21:13 -07:00
|
|
|
dlls/ntdll/loader.c | 16 ++++++++++++++++
|
|
|
|
1 file changed, 16 insertions(+)
|
2014-10-02 11:04:58 -07:00
|
|
|
|
2020-09-02 07:38:53 -07:00
|
|
|
diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
|
2021-04-26 16:21:13 -07:00
|
|
|
index ee453700e51..c2d4b3c2f86 100644
|
2020-09-02 07:38:53 -07:00
|
|
|
--- a/dlls/ntdll/loader.c
|
|
|
|
+++ b/dlls/ntdll/loader.c
|
|
|
|
@@ -44,6 +44,7 @@ WINE_DECLARE_DEBUG_CHANNEL(relay);
|
|
|
|
WINE_DECLARE_DEBUG_CHANNEL(snoop);
|
|
|
|
WINE_DECLARE_DEBUG_CHANNEL(loaddll);
|
|
|
|
WINE_DECLARE_DEBUG_CHANNEL(imports);
|
2014-10-02 11:04:58 -07:00
|
|
|
+WINE_DECLARE_DEBUG_CHANNEL(winediag);
|
|
|
|
|
2020-09-02 07:38:53 -07:00
|
|
|
#ifdef _WIN64
|
|
|
|
#define DEFAULT_SECURITY_COOKIE_64 (((ULONGLONG)0x00002b99 << 32) | 0x2ddfa232)
|
2021-04-26 16:21:13 -07:00
|
|
|
@@ -3307,6 +3308,7 @@ void WINAPI LdrShutdownProcess(void)
|
2021-04-06 15:41:23 -07:00
|
|
|
process_detach();
|
2020-05-26 17:10:56 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
+extern const char * CDECL wine_get_version(void);
|
2014-10-02 11:04:58 -07:00
|
|
|
|
2020-09-02 07:38:53 -07:00
|
|
|
/******************************************************************
|
2021-04-06 15:41:23 -07:00
|
|
|
* RtlExitUserProcess (NTDLL.@)
|
2021-04-26 16:21:13 -07:00
|
|
|
@@ -3673,6 +3675,9 @@ static void init_wow64(void)
|
2020-10-01 15:48:09 -07:00
|
|
|
*/
|
2020-09-02 07:38:53 -07:00
|
|
|
void WINAPI LdrInitializeThunk( CONTEXT *context, ULONG_PTR unknown2, ULONG_PTR unknown3, ULONG_PTR unknown4 )
|
|
|
|
{
|
|
|
|
+ OBJECT_ATTRIBUTES staging_event_attr;
|
|
|
|
+ UNICODE_STRING staging_event_string;
|
|
|
|
+ HANDLE staging_event;
|
|
|
|
static int attach_done;
|
|
|
|
int i;
|
|
|
|
NTSTATUS status;
|
2021-04-26 16:21:13 -07:00
|
|
|
@@ -3753,6 +3758,17 @@ void WINAPI LdrInitializeThunk( CONTEXT *context, ULONG_PTR unknown2, ULONG_PTR
|
|
|
|
}
|
|
|
|
else wm = get_modref( NtCurrentTeb()->Peb->ImageBaseAddress );
|
2020-09-02 07:38:53 -07:00
|
|
|
|
2020-09-03 19:26:52 -07:00
|
|
|
+ RtlInitUnicodeString( &staging_event_string, L"\\__wine_staging_warn_event" );
|
2020-09-02 07:38:53 -07:00
|
|
|
+ InitializeObjectAttributes( &staging_event_attr, &staging_event_string, OBJ_OPENIF, NULL, NULL );
|
|
|
|
+ if (NtCreateEvent( &staging_event, EVENT_ALL_ACCESS, &staging_event_attr, NotificationEvent, FALSE ) == STATUS_SUCCESS)
|
2020-08-31 19:17:43 -07:00
|
|
|
+ {
|
2020-09-02 07:38:53 -07:00
|
|
|
+ FIXME_(winediag)("wine-staging %s is a testing version containing experimental patches.\n", wine_get_version());
|
2020-08-31 19:17:43 -07:00
|
|
|
+ FIXME_(winediag)("Please mention your exact version when filing bug reports on winehq.org.\n");
|
|
|
|
+ }
|
|
|
|
+ else
|
2020-09-02 07:38:53 -07:00
|
|
|
+ WARN_(winediag)("wine-staging %s is a testing version containing experimental patches.\n", wine_get_version());
|
2020-08-31 19:17:43 -07:00
|
|
|
+
|
2021-04-26 16:21:13 -07:00
|
|
|
+
|
|
|
|
RtlAcquirePebLock();
|
|
|
|
InsertHeadList( &tls_links, &NtCurrentTeb()->TlsLinks );
|
|
|
|
RtlReleasePebLock();
|
2014-10-02 11:04:58 -07:00
|
|
|
--
|
2021-04-06 15:41:23 -07:00
|
|
|
2.30.2
|
2014-10-02 11:04:58 -07:00
|
|
|
|