From fe880597a1c38bba761950b5cf533f80814df41c Mon Sep 17 00:00:00 2001 From: Brendan Shanks Date: Tue, 23 Jan 2024 15:19:28 -0800 Subject: [PATCH] ntdll: Remove unnecessary NtQueryVirtualMemory call. --- dlls/ntdll/loader.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c index 021f7941969..8030e3b7892 100644 --- a/dlls/ntdll/loader.c +++ b/dlls/ntdll/loader.c @@ -4255,14 +4255,10 @@ void loader_init( CONTEXT *context, void **entry ) if (!imports_fixup_done) { - MEMORY_BASIC_INFORMATION meminfo; ANSI_STRING ctrl_routine = RTL_CONSTANT_STRING( "CtrlRoutine" ); WINE_MODREF *kernel32; PEB *peb = NtCurrentTeb()->Peb; - NtQueryVirtualMemory( GetCurrentProcess(), LdrInitializeThunk, MemoryBasicInformation, - &meminfo, sizeof(meminfo), NULL ); - peb->LdrData = &ldr; peb->FastPebLock = &peb_lock; peb->TlsBitmap = &tls_bitmap;