Author: rmessiant
Date: Sun Sep 30 19:47:28 2012
New Revision: 57442
URL:
http://svn.reactos.org/svn/reactos?rev=57442&view=rev
Log:
[NET]
- Correct copying of arguments into temporary buffer.
- Remove some debug prints.
Modified:
trunk/reactos/base/applications/network/net/cmdStop.c
trunk/reactos/base/applications/network/net/cmdstart.c
Modified: trunk/reactos/base/applications/network/net/cmdStop.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/net/cmdStop.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/net/cmdStop.c [iso-8859-1] Sun Sep 30 19:47:28
2012
@@ -29,7 +29,6 @@
SC_MANAGER_ENUMERATE_SERVICE);
if (hManager == NULL)
{
-printf("1\n");
dwError = GetLastError();
nError = 1;
goto done;
@@ -40,7 +39,6 @@
SERVICE_STOP);
if (hService == NULL)
{
-printf("2\n");
dwError = GetLastError();
nError = 1;
goto done;
@@ -48,7 +46,6 @@
if (!ControlService(hService, SERVICE_CONTROL_STOP, &ServiceStatus))
{
-printf("3\n");
dwError = GetLastError();
nError = 1;
goto done;
Modified: trunk/reactos/base/applications/network/net/cmdstart.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/net/cmdstart.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/network/net/cmdstart.c [iso-8859-1] Sun Sep 30
19:47:28 2012
@@ -130,7 +130,7 @@
for (i = 2; i < argc; i++)
{
- lpArgVectors[i] = argv[i + 2];
+ lpArgVectors[i - 2] = argv[i];
}
if (!StartServiceW(hService,