mirror of
https://github.com/reactos/reactos.git
synced 2024-11-04 22:00:55 +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)
|
||||
goto fail;
|
||||
|
||||
if (!ArgCount)
|
||||
{
|
||||
ServiceArgs = NULL;
|
||||
}
|
||||
|
||||
if (! StartService(hSc,
|
||||
ArgCount,
|
||||
ServiceArgs))
|
||||
|
|
Loading…
Reference in a new issue