https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e1bd79e3df9a8a31652fd…
commit e1bd79e3df9a8a31652fda867a3a80b775e2a488
Author: Serge Gautherie <32623169+SergeGautherie(a)users.noreply.github.com>
AuthorDate: Tue Feb 20 19:45:55 2018 +0100
Commit: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito(a)reactos.org>
CommitDate: Tue Feb 20 19:45:55 2018 +0100
[SC] Addendum to 4728157: Add missed values to query errors and usage output. (#387)
---
base/applications/sc/query.c | 4 ++--
base/applications/sc/usage.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/base/applications/sc/query.c b/base/applications/sc/query.c
index 54e04277b2..87b2468cfd 100644
--- a/base/applications/sc/query.c
+++ b/base/applications/sc/query.c
@@ -191,7 +191,7 @@ ParseQueryArguments(
}
else
{
- _tprintf(_T("ERROR following \"type=\"!\nMust be
\"driver\" or \"service\"\n"));
+ _tprintf(_T("ERROR following \"type=\"!\nMust be one
of: all, driver, interact, service.\n"));
return FALSE;
}
@@ -220,7 +220,7 @@ ParseQueryArguments(
}
else
{
- _tprintf(_T("ERROR following \"state=\"!\nMust be
\"inactive\" or \"all\"\n"));
+ _tprintf(_T("ERROR following \"state=\"!\nMust be one
of: active, all, inactive.\n"));
return FALSE;
}
diff --git a/base/applications/sc/usage.c b/base/applications/sc/usage.c
index b1b4a04925..ec431f6856 100644
--- a/base/applications/sc/usage.c
+++ b/base/applications/sc/usage.c
@@ -66,7 +66,7 @@ VOID MainUsage(VOID)
_T(" the options listed below, the services are enumerated.\n")
_T(" type= Type of services to enumerate (driver, service, interact,
all)\n")
_T(" (default = service)\n")
- _T(" state= State of services to enumerate (inactive, all)\n")
+ _T(" state= State of services to enumerate (active, all,
inactive)\n")
_T(" (default = active)\n")
_T(" bufsize= The size (in bytes) of the enumeration buffer\n")
_T(" (default = 4096)\n")