From 7f8391d22f13b49212b0fd2a1f22067c0de127e0 Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Sat, 7 Dec 2024 08:55:33 +1100 Subject: [PATCH] Rebase against 4161e62e478f61fdcd0365d9bd7b21e3b1a5197b. --- ...t-for-hiding-wine-version-informatio.patch | 24 +++++++++---------- staging/upstream-commit | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/patches/ntdll-Hide_Wine_Exports/0001-ntdll-Add-support-for-hiding-wine-version-informatio.patch b/patches/ntdll-Hide_Wine_Exports/0001-ntdll-Add-support-for-hiding-wine-version-informatio.patch index e55cef9f..318ddddc 100644 --- a/patches/ntdll-Hide_Wine_Exports/0001-ntdll-Add-support-for-hiding-wine-version-informatio.patch +++ b/patches/ntdll-Hide_Wine_Exports/0001-ntdll-Add-support-for-hiding-wine-version-informatio.patch @@ -1,4 +1,4 @@ -From 43ca4e4a3c633d405b3d282badb028c4250f942d Mon Sep 17 00:00:00 2001 +From e93243e7863c239a1e4b2d91cb12dcd2cb373b36 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Sat, 30 May 2015 02:23:15 +0200 Subject: [PATCH] ntdll: Add support for hiding wine version information from @@ -10,10 +10,10 @@ Subject: [PATCH] ntdll: Add support for hiding wine version information from 2 files changed, 103 insertions(+), 1 deletion(-) diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c -index fbad84d2c36..5afeb0f63b0 100644 +index 9dcb475c148..9e61c38d773 100644 --- a/dlls/ntdll/loader.c +++ b/dlls/ntdll/loader.c -@@ -87,6 +87,9 @@ const WCHAR system_dir[] = L"C:\\windows\\system32\\"; +@@ -88,6 +88,9 @@ const WCHAR system_dir[] = L"C:\\windows\\system32\\"; /* system search path */ static const WCHAR system_path[] = L"C:\\windows\\system32;C:\\windows\\system;C:\\windows"; @@ -23,7 +23,7 @@ index fbad84d2c36..5afeb0f63b0 100644 static BOOL is_prefix_bootstrap; /* are we bootstrapping the prefix? */ static BOOL imports_fixup_done = FALSE; /* set once the imports have been fixed up, before attaching them */ static BOOL process_detaching = FALSE; /* set on process detach to avoid deadlocks with thread detach */ -@@ -106,6 +109,8 @@ struct dll_dir_entry +@@ -107,6 +110,8 @@ struct dll_dir_entry static struct list dll_dir_list = LIST_INIT( dll_dir_list ); /* extra dirs from LdrAddDllDirectory */ @@ -32,7 +32,7 @@ index fbad84d2c36..5afeb0f63b0 100644 struct ldr_notification { struct list entry; -@@ -2030,6 +2035,96 @@ NTSTATUS WINAPI LdrUnlockLoaderLock( ULONG flags, ULONG_PTR magic ) +@@ -2022,6 +2027,96 @@ NTSTATUS WINAPI LdrUnlockLoaderLock( ULONG flags, ULONG_PTR magic ) } @@ -129,7 +129,7 @@ index fbad84d2c36..5afeb0f63b0 100644 /****************************************************************** * LdrGetProcedureAddress (NTDLL.@) */ -@@ -2050,7 +2145,7 @@ NTSTATUS WINAPI LdrGetProcedureAddress(HMODULE module, const ANSI_STRING *name, +@@ -2042,7 +2137,7 @@ NTSTATUS WINAPI LdrGetProcedureAddress(HMODULE module, const ANSI_STRING *name, { void *proc = name ? find_named_export( module, exports, exp_size, name->Buffer, -1, NULL ) : find_ordinal_export( module, exports, exp_size, ord - exports->Base, NULL ); @@ -138,7 +138,7 @@ index fbad84d2c36..5afeb0f63b0 100644 { *address = proc; ret = STATUS_SUCCESS; -@@ -2311,6 +2406,8 @@ static void build_ntdll_module(void) +@@ -2304,6 +2399,8 @@ static void build_ntdll_module(void) wm->ldr.Flags &= ~LDR_DONT_RESOLVE_REFS; node_ntdll = wm->ldr.DdagNode; if (TRACE_ON(relay)) RELAY_SetupDLL( module ); @@ -148,12 +148,12 @@ index fbad84d2c36..5afeb0f63b0 100644 diff --git a/dlls/ntdll/ntdll_misc.h b/dlls/ntdll/ntdll_misc.h -index cffe27d847c..d3c4a9cae68 100644 +index fb5fb311646..a342cbf7d26 100644 --- a/dlls/ntdll/ntdll_misc.h +++ b/dlls/ntdll/ntdll_misc.h -@@ -145,6 +145,11 @@ static inline TEB64 *NtCurrentTeb64(void) { return NULL; } - static inline TEB64 *NtCurrentTeb64(void) { return (TEB64 *)NtCurrentTeb()->GdiBatchCount; } - #endif +@@ -117,6 +117,11 @@ static inline void *get_rva( HMODULE module, DWORD va ) + return (void *)((char *)module + va); + } +/* version */ +extern const char * CDECL wine_get_version(void); @@ -164,5 +164,5 @@ index cffe27d847c..d3c4a9cae68 100644 static inline void ascii_to_unicode( WCHAR *dst, const char *src, size_t len ) { -- -2.43.0 +2.45.2 diff --git a/staging/upstream-commit b/staging/upstream-commit index 95a63f13..b2cc0026 100644 --- a/staging/upstream-commit +++ b/staging/upstream-commit @@ -1 +1 @@ -13c47c91e2d6fea81f4c0598cf5d2e81e95b0dd2 +4161e62e478f61fdcd0365d9bd7b21e3b1a5197b