Commit e75ebfb3 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

sc: Print service status after 'start' and 'stop' commands.

Like Windows 10 sc.exe does. Signed-off-by: 's avatarDmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 921c86a3
......@@ -322,6 +322,7 @@ int __cdecl wmain( int argc, const WCHAR *argv[] )
{
ret = StartServiceW( service, argc - 3, argv + 3 );
if (!ret) WINE_TRACE("failed to start service %lu\n", GetLastError());
else query_service( manager, argv[2] );
CloseServiceHandle( service );
}
else WINE_ERR("failed to open service %lu\n", GetLastError());
......@@ -333,6 +334,7 @@ int __cdecl wmain( int argc, const WCHAR *argv[] )
{
ret = ControlService( service, SERVICE_CONTROL_STOP, &status );
if (!ret) WINE_TRACE("failed to stop service %lu\n", GetLastError());
else query_service( manager, argv[2] );
CloseServiceHandle( service );
}
else WINE_ERR("failed to open service %lu\n", GetLastError());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment