1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

ntdll: Remove unnecessary NtQueryVirtualMemory call.

This commit is contained in:
Brendan Shanks 2024-01-23 15:19:28 -08:00 committed by Alexandre Julliard
parent d81c4ce1ba
commit fe880597a1

View file

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