[ros-diffs] [ion] 19448: - Don't hardcode PEB address

ion at svn.reactos.com ion at svn.reactos.com
Tue Nov 22 04:37:52 CET 2005


- 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);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051122/63a49d28/attachment.html


More information about the Ros-diffs mailing list