1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-26 08:09:07 +00:00

Remove the correct error message, by nnposter. Fixes #561

This commit is contained in:
dmiller
2016-10-05 13:55:36 +00:00
parent 82b6da33fc
commit 81edb3ad3b

View File

@@ -187,13 +187,13 @@ static bool start_service(const char *svcname) {
}
npf = OpenService(scm, svcname, SC_MANAGER_CONNECT | SERVICE_QUERY_STATUS);
if (npf == NULL) {
/* No need to warn at this point: we'll check later
error("Error in OpenService");
*/
goto quit_error;
}
if (!QueryServiceStatus(npf, &service)) {
/* No need to warn at this point: we'll check later
error("Error in QueryServiceStatus");
*/
goto quit_error;
}
npf_running = (service.dwCurrentState & SERVICE_RUNNING) != 0;