mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
61 lines
2.2 KiB
Diff
61 lines
2.2 KiB
Diff
From e6354103c243e13c177f6a534a9e786cfdcf7c92 Mon Sep 17 00:00:00 2001
|
|
From: Sebastian Lackner <sebastian@fds-team.de>
|
|
Date: Thu, 2 Oct 2014 19:44:31 +0200
|
|
Subject: [PATCH] ntdll: Print a warning message specifying the wine-staging
|
|
branch name and version.
|
|
|
|
---
|
|
dlls/ntdll/loader.c | 15 +++++++++++++++
|
|
1 file changed, 15 insertions(+)
|
|
|
|
diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
|
|
index 1a87f4d1f5e..31c0a3bae94 100644
|
|
--- a/dlls/ntdll/loader.c
|
|
+++ b/dlls/ntdll/loader.c
|
|
@@ -42,6 +42,7 @@ WINE_DECLARE_DEBUG_CHANNEL(relay);
|
|
WINE_DECLARE_DEBUG_CHANNEL(snoop);
|
|
WINE_DECLARE_DEBUG_CHANNEL(loaddll);
|
|
WINE_DECLARE_DEBUG_CHANNEL(imports);
|
|
+WINE_DECLARE_DEBUG_CHANNEL(winediag);
|
|
|
|
#ifdef _WIN64
|
|
#define DEFAULT_SECURITY_COOKIE_64 (((ULONGLONG)0x00002b99 << 32) | 0x2ddfa232)
|
|
@@ -3749,6 +3750,7 @@ void WINAPI LdrShutdownProcess(void)
|
|
process_detach();
|
|
}
|
|
|
|
+extern const char * CDECL wine_get_version(void);
|
|
|
|
/******************************************************************
|
|
* RtlExitUserProcess (NTDLL.@)
|
|
@@ -4195,6 +4197,9 @@ static void release_address_space(void)
|
|
*/
|
|
void loader_init( CONTEXT *context, void **entry )
|
|
{
|
|
+ OBJECT_ATTRIBUTES staging_event_attr;
|
|
+ UNICODE_STRING staging_event_string;
|
|
+ HANDLE staging_event;
|
|
static int attach_done;
|
|
NTSTATUS status;
|
|
ULONG_PTR cookie;
|
|
@@ -4274,6 +4279,16 @@ void loader_init( CONTEXT *context, void **entry )
|
|
if (NtCurrentTeb()->WowTebOffset) init_wow64( context );
|
|
#endif
|
|
|
|
+ RtlInitUnicodeString( &staging_event_string, L"\\__wine_staging_warn_event" );
|
|
+ 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)
|
|
+ {
|
|
+ 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());
|
|
+
|
|
RtlAcquirePebLock();
|
|
InsertHeadList( &tls_links, &NtCurrentTeb()->TlsLinks );
|
|
RtlReleasePebLock();
|
|
--
|
|
2.42.0
|
|
|