[PATCH] mshtml/tests: Release interface after successful QI

Nikolay Sivov nsivov at codeweavers.com
Sat Jun 11 14:10:05 CDT 2016


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/mshtml/tests/script.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/mshtml/tests/script.c b/dlls/mshtml/tests/script.c
index 73b1185..3574a0a 100644
--- a/dlls/mshtml/tests/script.c
+++ b/dlls/mshtml/tests/script.c
@@ -2505,7 +2505,7 @@ static HRESULT WINAPI ActiveScript_SetScriptSite(IActiveScript *iface, IActiveSc
 
     hres = IActiveScriptSite_QueryInterface(pass, &IID_IActiveScriptSiteInterruptPoll, (void**)&poll);
     ok(hres == S_OK, "Could not get IActiveScriptSiteInterruptPoll interface: %08x\n", hres);
-    if(FAILED(hres))
+    if(SUCCEEDED(hres))
         IActiveScriptSiteInterruptPoll_Release(poll);
 
     hres = IActiveScriptSite_GetLCID(pass, &lcid);
-- 
2.8.1




More information about the wine-patches mailing list