From 74a2ce4d994f3b9818ece06eac728ce94e81833d Mon Sep 17 00:00:00 2001 From: Misha Koshelev Date: Sun, 18 Nov 2007 23:36:56 -0600 Subject: [PATCH] msi/tests: Close opened service handles. --- dlls/msi/tests/automation.c | 3 +++ dlls/msi/tests/install.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/dlls/msi/tests/automation.c b/dlls/msi/tests/automation.c index d074d348058..2db947e68f1 100644 --- a/dlls/msi/tests/automation.c +++ b/dlls/msi/tests/automation.c @@ -387,6 +387,9 @@ static void check_service_is_installed(void) res = DeleteService(service); ok(res, "Failed to delete TestService\n"); + + CloseServiceHandle(service); + CloseServiceHandle(scm); } /* diff --git a/dlls/msi/tests/install.c b/dlls/msi/tests/install.c index 3e482332eb2..b8817d9ab34 100644 --- a/dlls/msi/tests/install.c +++ b/dlls/msi/tests/install.c @@ -1265,6 +1265,9 @@ static void check_service_is_installed(void) res = DeleteService(service); ok(res, "Failed to delete TestService\n"); + + CloseServiceHandle(service); + CloseServiceHandle(scm); } static void test_MsiInstallProduct(void)