- Correct copying of arguments into temporary buffer.
- Remove some debug prints.

svn path=/trunk/; revision=57442
This commit is contained in:
Roel Messiant 2012-09-30 19:47:28 +00:00
parent 71a1bbd4df
commit 779b528c86
2 changed files with 1 additions and 4 deletions

View file

@ -29,7 +29,6 @@ INT cmdStop(INT argc, WCHAR **argv)
SC_MANAGER_ENUMERATE_SERVICE);
if (hManager == NULL)
{
printf("1\n");
dwError = GetLastError();
nError = 1;
goto done;
@ -40,7 +39,6 @@ printf("1\n");
SERVICE_STOP);
if (hService == NULL)
{
printf("2\n");
dwError = GetLastError();
nError = 1;
goto done;
@ -48,7 +46,6 @@ printf("2\n");
if (!ControlService(hService, SERVICE_CONTROL_STOP, &ServiceStatus))
{
printf("3\n");
dwError = GetLastError();
nError = 1;
goto done;

View file

@ -130,7 +130,7 @@ StartOneService(INT argc, WCHAR **argv)
for (i = 2; i < argc; i++)
{
lpArgVectors[i] = argv[i + 2];
lpArgVectors[i - 2] = argv[i];
}
if (!StartServiceW(hService,