mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-19 17:06:04 -07:00
net: Correct error code for stopping non existing service
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55859
This commit is contained in:
parent
f2f36a6eff
commit
5876cc21af
2 changed files with 1 additions and 2 deletions
|
@ -365,7 +365,7 @@ int __cdecl wmain(int argc, const WCHAR* argv[])
|
||||||
if(arg_is(argv[2], L"/help"))
|
if(arg_is(argv[2], L"/help"))
|
||||||
output_string(STRING_STOP_USAGE);
|
output_string(STRING_STOP_USAGE);
|
||||||
else if(!net_service(NET_STOP, argv[2]))
|
else if(!net_service(NET_STOP, argv[2]))
|
||||||
return 1;
|
return 2;
|
||||||
}
|
}
|
||||||
else if(arg_is(argv[1], L"use"))
|
else if(arg_is(argv[1], L"use"))
|
||||||
{
|
{
|
||||||
|
|
|
@ -62,7 +62,6 @@ static void test_stop(void)
|
||||||
/* Stop non existing service */
|
/* Stop non existing service */
|
||||||
|
|
||||||
run_net_exe("net stop non-existing-service", &r);
|
run_net_exe("net stop non-existing-service", &r);
|
||||||
todo_wine
|
|
||||||
check_exit_code(2);
|
check_exit_code(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue