advapi32/service: Close a handle on failure.
This commit is contained in:
parent
05e1539b2b
commit
7625c3bf37
|
@ -427,6 +427,7 @@ static void test_get_displayname(void)
|
|||
if (!svc_handle)
|
||||
{
|
||||
skip("Spooler service doesn't exist\n");
|
||||
CloseServiceHandle(scm_handle);
|
||||
return;
|
||||
}
|
||||
CloseServiceHandle(svc_handle);
|
||||
|
|
Loading…
Reference in New Issue