mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +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");
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue