From e1bd79e3df9a8a31652fda867a3a80b775e2a488 Mon Sep 17 00:00:00 2001 From: Serge Gautherie <32623169+SergeGautherie@users.noreply.github.com> Date: Tue, 20 Feb 2018 19:45:55 +0100 Subject: [PATCH] [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 54e04277b2b..87b2468cfdf 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 b1b4a04925a..ec431f68562 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")