1
0
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:
dmiller
2016-09-01 03:34:20 +00:00
parent fd37e977c9
commit 7b2f115d24
2 changed files with 4 additions and 4 deletions

View File

@@ -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;
}

View File

@@ -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;
}