mirror of
https://github.com/reactos/reactos.git
synced 2024-07-30 08:08:56 +00:00
[NTDLL]
Allocate enough space to hold the alignment padding of arguments in CsrAllocateCaptureBuffer. svn path=/branches/ntvdm/; revision=61961
This commit is contained in:
parent
6a287dfdfe
commit
02acc76770
|
@ -101,6 +101,9 @@ CsrAllocateCaptureBuffer(IN ULONG ArgumentCount,
|
||||||
/* Align it to a 4-byte boundary */
|
/* Align it to a 4-byte boundary */
|
||||||
BufferSize = (BufferSize + 3) & ~3;
|
BufferSize = (BufferSize + 3) & ~3;
|
||||||
|
|
||||||
|
/* Add the size of the alignment padding for each argument */
|
||||||
|
BufferSize += ArgumentCount * 3;
|
||||||
|
|
||||||
/* Allocate memory from the port heap */
|
/* Allocate memory from the port heap */
|
||||||
CaptureBuffer = RtlAllocateHeap(CsrPortHeap, HEAP_ZERO_MEMORY, BufferSize);
|
CaptureBuffer = RtlAllocateHeap(CsrPortHeap, HEAP_ZERO_MEMORY, BufferSize);
|
||||||
if (CaptureBuffer == NULL) return NULL;
|
if (CaptureBuffer == NULL) return NULL;
|
||||||
|
|
Loading…
Reference in a new issue