Commit fe880597 authored by Brendan Shanks's avatar Brendan Shanks Committed by Alexandre Julliard

ntdll: Remove unnecessary NtQueryVirtualMemory call.

parent d81c4ce1
...@@ -4255,14 +4255,10 @@ void loader_init( CONTEXT *context, void **entry ) ...@@ -4255,14 +4255,10 @@ void loader_init( CONTEXT *context, void **entry )
if (!imports_fixup_done) if (!imports_fixup_done)
{ {
MEMORY_BASIC_INFORMATION meminfo;
ANSI_STRING ctrl_routine = RTL_CONSTANT_STRING( "CtrlRoutine" ); ANSI_STRING ctrl_routine = RTL_CONSTANT_STRING( "CtrlRoutine" );
WINE_MODREF *kernel32; WINE_MODREF *kernel32;
PEB *peb = NtCurrentTeb()->Peb; PEB *peb = NtCurrentTeb()->Peb;
NtQueryVirtualMemory( GetCurrentProcess(), LdrInitializeThunk, MemoryBasicInformation,
&meminfo, sizeof(meminfo), NULL );
peb->LdrData = &ldr; peb->LdrData = &ldr;
peb->FastPebLock = &peb_lock; peb->FastPebLock = &peb_lock;
peb->TlsBitmap = &tls_bitmap; peb->TlsBitmap = &tls_bitmap;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment