mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
- Don't pass empty ServiceArgumentVector to StartService
- Fixes a heap corruption svn path=/trunk/; revision=39407
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user