Author: fireball
Date: Tue Oct 12 09:03:39 2010
New Revision: 49122
URL:
http://svn.reactos.org/svn/reactos?rev=49122&view=rev
Log:
[NTDLL]
- Don't access unitialized memory. Caught thanks to a new heap manager, and this fixes
all weird actctx exceptions in kernel32_winetest heap.
Modified:
trunk/reactos/dll/ntdll/ldr/startup.c
Modified: trunk/reactos/dll/ntdll/ldr/startup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/ntdll/ldr/startup.c?re…
==============================================================================
--- trunk/reactos/dll/ntdll/ldr/startup.c [iso-8859-1] (original)
+++ trunk/reactos/dll/ntdll/ldr/startup.c [iso-8859-1] Tue Oct 12 09:03:39 2010
@@ -489,7 +489,7 @@
/* 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)
{