--- trunk/reactos/subsys/system/sc/sc.c 2005-11-04 00:10:39 UTC (rev 18981)
+++ trunk/reactos/subsys/system/sc/sc.c 2005-11-04 00:20:17 UTC (rev 18982)
@@ -52,7 +52,7 @@
_tprintf(_T("Remote service control is not yet implemented\n"));
return 2;
}
-/*
+
hSCManager = OpenSCManager(MachineName, NULL, SC_MANAGER_ALL_ACCESS);
if (hSCManager == NULL)
{
@@ -60,8 +60,8 @@
ReportLastError();
return -1;
}
-*/
+
if (_tcsicmp(Command, _T("query")) == 0)
Query(Args, FALSE);
@@ -71,7 +71,7 @@
else if (_tcsicmp(Command, _T("start")) == 0)
{
if (*Args)
- Start(3, Args);
+ Start(0, Args);
else
StartUsage();
}
--- trunk/reactos/subsys/system/sc/start.c 2005-11-04 00:10:39 UTC (rev 18981)
+++ trunk/reactos/subsys/system/sc/start.c 2005-11-04 00:20:17 UTC (rev 18982)
@@ -21,13 +21,15 @@
/* testing */
- printf("service to start - %s\n\n", ServiceName);
- printf("Arguments :\n");
+ _tprintf(_T("service to start - %s\n\n"), ServiceName);
+ _tprintf(_T("Arguments :\n"));
while (*ServiceArgs)
{
printf("%s\n", *ServiceArgs);
ServiceArgs++;
}
+ if (! *ServiceArgs)
+ ServiceArgs = NULL;
/* get a handle to the service requested for starting */
hSc = OpenService(hSCManager, ServiceName, SERVICE_ALL_ACCESS);