src/tincctl.c: inverse exit code for 'tinc stop' on Windows
[tinc] / src / tincctl.c
index 97b08cb..bfc16af 100644 (file)
@@ -1107,7 +1107,7 @@ static int cmd_stop(int argc, char *argv[]) {
        }
 
 #ifdef HAVE_MINGW
-       return remove_service();
+       return remove_service() ? EXIT_SUCCESS : EXIT_FAILURE;
 #else
 
        if(!stop_tincd()) {