advapi32/service: Close a handle on failure.

This commit is contained in:
Paul Vriens 2007-07-24 20:55:38 +02:00 committed by Alexandre Julliard
parent 05e1539b2b
commit 7625c3bf37
1 changed files with 1 additions and 0 deletions

View File

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