mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 12:02:02 +00:00
fix heap corruption
svn path=/trunk/; revision=36140
This commit is contained in:
parent
938228918e
commit
2d4ae8bb34
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ ScStartService(PSCM_CONTROL_PACKET ControlPacket)
|
|||
|
||||
lpService->Arguments = HeapAlloc(GetProcessHeap(),
|
||||
HEAP_ZERO_MEMORY,
|
||||
ControlPacket->dwSize * sizeof(WCHAR));
|
||||
(ControlPacket->dwSize + 1) * sizeof(WCHAR));
|
||||
if (lpService->Arguments == NULL)
|
||||
return ERROR_OUTOFMEMORY;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue