From 26253d8e9b0836c82c1ce07ec7d812c9bf10922b Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Fri, 25 Feb 2000 00:35:06 +0000 Subject: [PATCH] Fixed PEB related bugs svn path=/trunk/; revision=1008 --- reactos/lib/ntdll/ldr/startup.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reactos/lib/ntdll/ldr/startup.c b/reactos/lib/ntdll/ldr/startup.c index 7eeb1ca1e14..809b466123c 100644 --- a/reactos/lib/ntdll/ldr/startup.c +++ b/reactos/lib/ntdll/ldr/startup.c @@ -1,4 +1,4 @@ -/* $Id: startup.c,v 1.18 2000/02/13 16:05:14 dwelch Exp $ +/* $Id: startup.c,v 1.19 2000/02/25 00:35:06 ekohl Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -85,6 +85,7 @@ VOID LdrStartup(VOID) NTHeaders->OptionalHeader.SizeOfHeapReserve, NULL, NULL); + Peb->ProcessHeap = __ProcessHeap; EntryPoint = LdrPEStartup((PVOID)ImageBase, NULL); if (EntryPoint == NULL) @@ -103,7 +104,7 @@ VOID LdrStartup(VOID) } DbgPrint("Transferring control to image at %x\n",EntryPoint); - Status = EntryPoint(NULL); + Status = EntryPoint(Peb); ZwTerminateProcess(NtCurrentProcess(),Status); }