- Don't hardcode PEB address
Modified: trunk/reactos/lib/ntdll/ldr/startup.c

Modified: trunk/reactos/lib/ntdll/ldr/startup.c
--- trunk/reactos/lib/ntdll/ldr/startup.c	2005-11-22 03:32:15 UTC (rev 19447)
+++ trunk/reactos/lib/ntdll/ldr/startup.c	2005-11-22 03:37:39 UTC (rev 19448)
@@ -259,7 +259,7 @@
    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);