mirror of
https://github.com/reactos/reactos.git
synced 2025-07-27 07:41:51 +00:00
- Don't hardcode PEB address
svn path=/trunk/; revision=19448
This commit is contained in:
parent
0dac77333a
commit
c6a600f0d3
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ LdrpInit(PCONTEXT Context,
|
||||||
DPRINT("LdrpInit()\n");
|
DPRINT("LdrpInit()\n");
|
||||||
if (NtCurrentPeb()->Ldr == NULL || NtCurrentPeb()->Ldr->Initialized == FALSE)
|
if (NtCurrentPeb()->Ldr == NULL || NtCurrentPeb()->Ldr->Initialized == FALSE)
|
||||||
{
|
{
|
||||||
Peb = (PPEB)(PEB_BASE);
|
Peb = NtCurrentPeb();
|
||||||
DPRINT("Peb %x\n", Peb);
|
DPRINT("Peb %x\n", Peb);
|
||||||
ImageBase = Peb->ImageBaseAddress;
|
ImageBase = Peb->ImageBaseAddress;
|
||||||
DPRINT("ImageBase %x\n", ImageBase);
|
DPRINT("ImageBase %x\n", ImageBase);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue