From 50833f0780f34e33904b50ab1d9619f7cb4cc966 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Thu, 10 Dec 2009 17:01:24 -0800 Subject: [PATCH] msi: Wine fails the test and passes us a Session object back, so free it in this case. --- dlls/msi/tests/automation.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/msi/tests/automation.c b/dlls/msi/tests/automation.c index bf3f942d2e..bb498c07a5 100644 --- a/dlls/msi/tests/automation.c +++ b/dlls/msi/tests/automation.c @@ -721,6 +721,8 @@ static void test_dispatch(void) todo_wine ok(hr == DISP_E_EXCEPTION, "IDispatch::Invoke returned 0x%08x\n", hr); ok_exception(hr, szOpenPackageException); VariantClear(&vararg[0]); + if (hr != DISP_E_EXCEPTION) + VariantClear(&varresult); /* Try one parameter, the required BSTR. Second parameter is optional. * Proper installer package exists. Path to the package is absolute. -- 2.32.0.93.g670b81a890