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 d15a391c..46511b75 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,16 +1,16 @@ -From 4366a5a6cd385f84e6b9597cfe24864c991c135f Mon Sep 17 00:00:00 2001 +From 2d479408e3fb2670cb0d30ab912f88aa627c687f 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 applications. --- - dlls/ntdll/loader.c | 95 ++++++++++++++++++++++++++++++++++++++++++++++++- + dlls/ntdll/loader.c | 96 ++++++++++++++++++++++++++++++++++++++++++++++++- dlls/ntdll/ntdll_misc.h | 5 +++ - 2 files changed, 99 insertions(+), 1 deletion(-) + 2 files changed, 100 insertions(+), 1 deletion(-) diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c -index 69e1d01..bd27b6e 100644 +index 51aa334..1a69606 100644 --- a/dlls/ntdll/loader.c +++ b/dlls/ntdll/loader.c @@ -67,9 +67,12 @@ typedef void (CALLBACK *LDRENUMPROC)(LDR_MODULE *, void *, BOOLEAN *); @@ -26,7 +26,7 @@ index 69e1d01..bd27b6e 100644 static const char * const reason_names[] = { -@@ -1439,6 +1442,96 @@ NTSTATUS WINAPI LdrUnlockLoaderLock( ULONG flags, ULONG_PTR magic ) +@@ -1477,6 +1480,96 @@ NTSTATUS WINAPI LdrUnlockLoaderLock( ULONG flags, ULONG_PTR magic ) } @@ -123,7 +123,7 @@ index 69e1d01..bd27b6e 100644 /****************************************************************** * LdrGetProcedureAddress (NTDLL.@) */ -@@ -1459,7 +1552,7 @@ NTSTATUS WINAPI LdrGetProcedureAddress(HMODULE module, const ANSI_STRING *name, +@@ -1497,7 +1590,7 @@ NTSTATUS WINAPI LdrGetProcedureAddress(HMODULE module, const ANSI_STRING *name, LPCWSTR load_path = NtCurrentTeb()->Peb->ProcessParameters->DllPath.Buffer; void *proc = name ? find_named_export( module, exports, exp_size, name->Buffer, -1, load_path ) : find_ordinal_export( module, exports, exp_size, ord - exports->Base, load_path ); @@ -132,11 +132,19 @@ index 69e1d01..bd27b6e 100644 { *address = proc; ret = STATUS_SUCCESS; +@@ -3182,6 +3275,7 @@ void WINAPI LdrInitializeThunk( void *kernel_start, ULONG_PTR unknown2, + if (!peb->ProcessParameters->WindowTitle.Buffer) + peb->ProcessParameters->WindowTitle = wm->ldr.FullDllName; + version_init( wm->ldr.FullDllName.Buffer ); ++ hidden_exports_init( wm->ldr.FullDllName.Buffer ); + virtual_set_large_address_space(); + + LdrQueryImageFileExecutionOptions( &peb->ProcessParameters->ImagePathName, globalflagW, diff --git a/dlls/ntdll/ntdll_misc.h b/dlls/ntdll/ntdll_misc.h -index fb54912..90ff20c 100644 +index 717e47d..3007755 100644 --- a/dlls/ntdll/ntdll_misc.h +++ b/dlls/ntdll/ntdll_misc.h -@@ -254,6 +254,11 @@ extern HANDLE keyed_event DECLSPEC_HIDDEN; +@@ -251,6 +251,11 @@ extern HANDLE keyed_event DECLSPEC_HIDDEN; NTSTATUS WINAPI RtlHashUnicodeString(PCUNICODE_STRING,BOOLEAN,ULONG,ULONG*); @@ -149,5 +157,5 @@ index fb54912..90ff20c 100644 extern BOOL read_process_time(int unix_pid, int unix_tid, unsigned long clk_tck, LARGE_INTEGER *kernel, LARGE_INTEGER *user) DECLSPEC_HIDDEN; -- -1.9.1 +2.7.4