mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 19:26:16 +00:00
[NET]
- Correct copying of arguments into temporary buffer. - Remove some debug prints. svn path=/trunk/; revision=57442
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user