Author: janderwald
Date: Thu Feb 5 07:30:24 2009
New Revision: 39407
URL:
http://svn.reactos.org/svn/reactos?rev=39407&view=rev
Log:
- Don't pass empty ServiceArgumentVector to StartService
- Fixes a heap corruption
Modified:
trunk/reactos/base/applications/sc/start.c
Modified: trunk/reactos/base/applications/sc/start.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/sc/start…
==============================================================================
--- trunk/reactos/base/applications/sc/start.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/sc/start.c [iso-8859-1] Thu Feb 5 07:30:24 2009
@@ -45,6 +45,11 @@
if (hSc == NULL)
goto fail;
+ if (!ArgCount)
+ {
+ ServiceArgs = NULL;
+ }
+
if (! StartService(hSc,
ArgCount,
ServiceArgs))