Author: aandrejevic
Date: Mon Feb 3 17:25:55 2014
New Revision: 61961
URL: http://svn.reactos.org/svn/reactos?rev=61961&view=rev
Log:
[NTDLL]
Allocate enough space to hold the alignment padding of arguments in
CsrAllocateCaptureBuffer.
Modified:
branches/ntvdm/dll/ntdll/csr/capture.c
Modified: branches/ntvdm/dll/ntdll/csr/capture.c
URL: http://svn.reactos.org/svn/reactos/branches/ntvdm/dll/ntdll/csr/capture.c?r…
==============================================================================
--- branches/ntvdm/dll/ntdll/csr/capture.c [iso-8859-1] (original)
+++ branches/ntvdm/dll/ntdll/csr/capture.c [iso-8859-1] Mon Feb 3 17:25:55 2014
@@ -100,6 +100,9 @@
/* Align it to a 4-byte boundary */
BufferSize = (BufferSize + 3) & ~3;
+
+ /* Add the size of the alignment padding for each argument */
+ BufferSize += ArgumentCount * 3;
/* Allocate memory from the port heap */
CaptureBuffer = RtlAllocateHeap(CsrPortHeap, HEAP_ZERO_MEMORY, BufferSize);