Author: cgutman
Date: Sun Jul 10 16:25:42 2011
New Revision: 52611

URL: http://svn.reactos.org/svn/reactos?rev=52611&view=rev
Log:
[NTDLL]
- Fix memory corruption by reverting part of r52603

Modified:
    trunk/reactos/dll/ntdll/ldr/ldrapi.c

Modified: trunk/reactos/dll/ntdll/ldr/ldrapi.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/ntdll/ldr/ldrapi.c?rev=52611&r1=52610&r2=52611&view=diff
==============================================================================
--- trunk/reactos/dll/ntdll/ldr/ldrapi.c [iso-8859-1] (original)
+++ trunk/reactos/dll/ntdll/ldr/ldrapi.c [iso-8859-1] Sun Jul 10 16:25:42 2011
@@ -1292,7 +1292,7 @@
             /* Set up the Act Ctx */
             ActCtx.Size = sizeof(ActCtx);
             ActCtx.Format = 
RTL_CALLER_ALLOCATED_ACTIVATION_CONTEXT_STACK_FRAME_FORMAT_WHISTLER;
-            RtlZeroMemory(&ActCtx.Frame, sizeof(ActCtx));
+            RtlZeroMemory(&ActCtx.Frame, 
sizeof(RTL_ACTIVATION_CONTEXT_STACK_FRAME));
 
             /* Activate the ActCtx */
             RtlActivateActivationContextUnsafeFast(&ActCtx,
@@ -1416,7 +1416,7 @@
             /* Set up the Act Ctx */
             ActCtx.Size = sizeof(ActCtx);
             ActCtx.Format = 
RTL_CALLER_ALLOCATED_ACTIVATION_CONTEXT_STACK_FRAME_FORMAT_WHISTLER;
-            RtlZeroMemory(&ActCtx.Frame, sizeof(ActCtx));
+            RtlZeroMemory(&ActCtx.Frame, 
sizeof(RTL_ACTIVATION_CONTEXT_STACK_FRAME));
 
             /* Activate the ActCtx */
             RtlActivateActivationContextUnsafeFast(&ActCtx,


Reply via email to