wow64cpu: Use RTL_CONSTANT_STRING.

This commit is contained in:
Brendan Shanks 2023-10-10 16:41:20 -07:00 committed by Alexandre Julliard
parent bb2e02ab66
commit 5ae7ca0b78

View file

@ -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" );