Nikolay Sivov : mshtml/tests: Release interface after successful QI.

Alexandre Julliard julliard at winehq.org
Mon Jun 13 11:11:30 CDT 2016


Module: wine
Branch: master
Commit: 08cdd05be0556e6747e323c644b4bc62116d9084
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=08cdd05be0556e6747e323c644b4bc62116d9084

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sat Jun 11 22:10:05 2016 +0300

mshtml/tests: Release interface after successful QI.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

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




More information about the wine-cvs mailing list