mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
- Don't hardcode PEB address
svn path=/trunk/; revision=19448
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user