Module: wine Branch: master Commit: 5ae7ca0b78df60c77d95f6b0b2228fe70ca45fa7 URL: https://gitlab.winehq.org/wine/wine/-/commit/5ae7ca0b78df60c77d95f6b0b2228fe...
Author: Brendan Shanks bshanks@codeweavers.com Date: Tue Oct 10 16:41:20 2023 -0700
wow64cpu: Use RTL_CONSTANT_STRING.
---
dlls/wow64cpu/cpu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/wow64cpu/cpu.c b/dlls/wow64cpu/cpu.c index 5a679c56d1e..acfd21f474b 100644 --- a/dlls/wow64cpu/cpu.c +++ b/dlls/wow64cpu/cpu.c @@ -288,7 +288,7 @@ NTSTATUS WINAPI BTCpuProcessInit(void) ULONG old_prot; CONTEXT context; HMODULE module; - UNICODE_STRING str; + UNICODE_STRING str = RTL_CONSTANT_STRING( L"ntdll.dll" ); void **p__wine_unix_call_dispatcher; WOW64INFO *wow64info = NtCurrentTeb()->TlsSlots[WOW64_TLS_WOW64INFO];
@@ -300,7 +300,6 @@ NTSTATUS WINAPI BTCpuProcessInit(void)
wow64info->CpuFlags |= WOW64_CPUFLAGS_MSFT64;
- RtlInitUnicodeString( &str, L"ntdll.dll" ); LdrGetDllHandle( NULL, 0, &str, &module ); p__wine_unix_call_dispatcher = RtlFindExportedRoutineByName( module, "__wine_unix_call_dispatcher" );