- Don't pass empty ServiceArgumentVector to StartService

- Fixes a heap corruption

svn path=/trunk/; revision=39407
This commit is contained in:
Johannes Anderwald 2009-02-05 13:30:24 +00:00
parent f7f3a1294f
commit edd487537a

View file

@ -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))