mirror of
https://github.com/reactos/reactos.git
synced 2026-07-07 03:44:25 +08:00
fix heap corruption
svn path=/trunk/; revision=36140
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user