[NTDLL]
authorAleksey Bragin <aleksey@reactos.org>
Tue, 12 Oct 2010 09:03:39 +0000 (09:03 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Tue, 12 Oct 2010 09:03:39 +0000 (09:03 +0000)
- 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

index 603683a..83cea30 100644 (file)
@@ -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)
     {