mirror of
https://github.com/reactos/reactos.git
synced 2025-06-05 17:30:32 +00:00
- Don't pass empty ServiceArgumentVector to StartService
- Fixes a heap corruption svn path=/trunk/; revision=39407
This commit is contained in:
parent
f7f3a1294f
commit
edd487537a
1 changed files with 5 additions and 0 deletions
|
@ -45,6 +45,11 @@ BOOL Start(LPCTSTR ServiceName, LPCTSTR *ServiceArgs, INT ArgCount)
|
||||||
if (hSc == NULL)
|
if (hSc == NULL)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
|
if (!ArgCount)
|
||||||
|
{
|
||||||
|
ServiceArgs = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (! StartService(hSc,
|
if (! StartService(hSc,
|
||||||
ArgCount,
|
ArgCount,
|
||||||
ServiceArgs))
|
ServiceArgs))
|
||||||
|
|
Loading…
Reference in a new issue