mirror of
https://github.com/nmap/nmap.git
synced 2025-12-27 09:59:04 +00:00
Use CloseServiceHandle instead of CloseHandle to avoid debugging crash
This commit is contained in:
@@ -223,9 +223,9 @@ Resorting to unprivileged (non-administrator) mode.", svcname, ret);
|
||||
|
||||
quit_error:
|
||||
if (scm != NULL)
|
||||
CloseHandle(scm);
|
||||
CloseServiceHandle(scm);
|
||||
if (npf != NULL)
|
||||
CloseHandle(npf);
|
||||
CloseServiceHandle(npf);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -223,9 +223,9 @@ Resorting to unprivileged (non-administrator) mode.", svcname, ret);
|
||||
|
||||
quit_error:
|
||||
if (scm != NULL)
|
||||
CloseHandle(scm);
|
||||
CloseServiceHandle(scm);
|
||||
if (npf != NULL)
|
||||
CloseHandle(npf);
|
||||
CloseServiceHandle(npf);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user