From 5876cc21af23477497988e041ae8874fa2ead767 Mon Sep 17 00:00:00 2001 From: Fabian Maurer Date: Sun, 17 Nov 2024 23:32:22 +0100 Subject: [PATCH] net: Correct error code for stopping non existing service Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=55859 --- programs/net/net.c | 2 +- programs/net/tests/net.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/programs/net/net.c b/programs/net/net.c index db0933ae78f..60a91cc3ed2 100644 --- a/programs/net/net.c +++ b/programs/net/net.c @@ -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")) { diff --git a/programs/net/tests/net.c b/programs/net/tests/net.c index 3609486a7cc..623a4e2794a 100644 --- a/programs/net/tests/net.c +++ b/programs/net/tests/net.c @@ -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); }