Fix check_service not working with names

This change fixes check_service not working correctly when using
descriptions instead of names.
This should probably be in 2.8.0
This commit is contained in:
Jean Flach 2017-11-07 17:45:01 +01:00
parent 36fddaf09b
commit 61a9eb13c1
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ INT wmain(INT argc, WCHAR **argv)
if (ret != -1)
return ret;
if (vm.count("description"));
if (vm.count("description"))
printInfo.service = GetServiceByDescription(vm["service"].as<std::wstring>());
if (printInfo.service.empty()) {