From 917da839e16f09d4b7b657a5fb07da3fe16b1318 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Tue, 12 Oct 2010 09:03:39 +0000 Subject: [PATCH] [NTDLL] - Don't access unitialized memory. Caught thanks to a new heap manager, and this fixes all weird actctx exceptions in kernel32_winetest heap. svn path=/trunk/; revision=49122 --- reactos/dll/ntdll/ldr/startup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/ntdll/ldr/startup.c b/reactos/dll/ntdll/ldr/startup.c index 603683aed2e..83cea3032f8 100644 --- a/reactos/dll/ntdll/ldr/startup.c +++ b/reactos/dll/ntdll/ldr/startup.c @@ -489,7 +489,7 @@ LdrpInit2(PCONTEXT Context, /* add entry for executable (becomes first list entry) */ ExeModule = (PLDR_DATA_TABLE_ENTRY) RtlAllocateHeap(Peb->ProcessHeap, - 0, + HEAP_ZERO_MEMORY, sizeof(LDR_DATA_TABLE_ENTRY)); if (ExeModule == NULL) {