- Don't hardcode PEB address

svn path=/trunk/; revision=19448
This commit is contained in:
Alex Ionescu 2005-11-22 03:37:39 +00:00
parent 0dac77333a
commit c6a600f0d3

View file

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