mirror of
https://github.com/reactos/reactos.git
synced 2024-07-05 12:15:46 +00:00
[NET]
- Correct copying of arguments into temporary buffer. - Remove some debug prints. svn path=/trunk/; revision=57442
This commit is contained in:
parent
71a1bbd4df
commit
779b528c86
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue