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:
Fabian Maurer 2024-11-17 23:32:22 +01:00
parent f2f36a6eff
commit 5876cc21af
2 changed files with 1 additions and 2 deletions

View file

@ -365,7 +365,7 @@ int __cdecl wmain(int argc, const WCHAR* argv[])
if(arg_is(argv[2], L"/help"))
output_string(STRING_STOP_USAGE);
else if(!net_service(NET_STOP, argv[2]))
return 1;
return 2;
}
else if(arg_is(argv[1], L"use"))
{

View file

@ -62,7 +62,6 @@ static void test_stop(void)
/* Stop non existing service */
run_net_exe("net stop non-existing-service", &r);
todo_wine
check_exit_code(2);
}