mirror of
https://github.com/nmap/nmap.git
synced 2026-10-21 03:11:48 +00:00
Use CloseServiceHandle instead of CloseHandle to avoid debugging crash
This commit is contained in:
parent
fd37e977c9
commit
7b2f115d24
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue