X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Flib%2Fntdll%2Fldr%2Fstartup.c;h=15defadf1f6e5fbdb63d487344365cdf20fa7ea2;hp=2baddd27db24d464fa0048d86815a18580a1ef11;hb=c6a600f0d38bbd57c817b5b0f85c3a739fc99ebf;hpb=0dac77333a883cd47fe1e7f769c485798c972f6d diff --git a/reactos/lib/ntdll/ldr/startup.c b/reactos/lib/ntdll/ldr/startup.c index 2baddd27db2..15defadf1f6 100644 --- a/reactos/lib/ntdll/ldr/startup.c +++ b/reactos/lib/ntdll/ldr/startup.c @@ -259,7 +259,7 @@ LdrpInit(PCONTEXT Context, DPRINT("LdrpInit()\n"); if (NtCurrentPeb()->Ldr == NULL || NtCurrentPeb()->Ldr->Initialized == FALSE) { - Peb = (PPEB)(PEB_BASE); + Peb = NtCurrentPeb(); DPRINT("Peb %x\n", Peb); ImageBase = Peb->ImageBaseAddress; DPRINT("ImageBase %x\n", ImageBase);