Commit 7625c3bf authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

advapi32/service: Close a handle on failure.

parent 05e1539b
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment