projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dac773
)
- Don't hardcode PEB address
author
Alex Ionescu
<aionescu@gmail.com>
Tue, 22 Nov 2005 03:37:39 +0000
(
03:37
+0000)
committer
Alex Ionescu
<aionescu@gmail.com>
Tue, 22 Nov 2005 03:37:39 +0000
(
03:37
+0000)
svn path=/trunk/; revision=19448
reactos/lib/ntdll/ldr/startup.c
patch
|
blob
|
history
diff --git
a/reactos/lib/ntdll/ldr/startup.c
b/reactos/lib/ntdll/ldr/startup.c
index
2baddd2
..
15defad
100644
(file)
--- 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);