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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user