Alistair Leslie-Hughes : mshtml: IID_IHTMLCurrentStyle4 isn' t supported on IE6.

Alexandre Julliard julliard at winehq.org
Mon Sep 26 16:15:13 CDT 2011


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

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Mon Sep 26 20:19:45 2011 +1000

mshtml: IID_IHTMLCurrentStyle4 isn't supported on IE6.

---

 dlls/mshtml/tests/dom.c |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c
index f585c45..0ce3ead 100644
--- a/dlls/mshtml/tests/dom.c
+++ b/dlls/mshtml/tests/dom.c
@@ -365,7 +365,6 @@ static const IID * const cstyle_iids[] = {
     &IID_IHTMLCurrentStyle,
     &IID_IHTMLCurrentStyle2,
     &IID_IHTMLCurrentStyle3,
-    &IID_IHTMLCurrentStyle4,
     NULL
 };
 
@@ -4568,8 +4567,20 @@ static void test_defaults(IHTMLDocument2 *doc)
     hres = IHTMLElement2_get_currentStyle(elem2, &cstyle);
     ok(hres == S_OK, "get_currentStyle failed: %08x\n", hres);
     if(SUCCEEDED(hres)) {
+        IUnknown *unk;
+
         test_disp((IUnknown*)cstyle, &DIID_DispHTMLCurrentStyle, "[object]");
         test_ifaces((IUnknown*)cstyle, cstyle_iids);
+
+        hres = IHTMLCurrentStyle_QueryInterface(cstyle, &IID_IHTMLCurrentStyle4, (void**)&unk);
+        if(SUCCEEDED(hres))
+            IUnknown_Release(unk);
+        else
+        {
+           /*IE6 doesn't have interface */
+           win_skip("IID_IHTMLCurrentStyle4 not supported\n");
+        }
+
         IHTMLCurrentStyle_Release(cstyle);
     }
     IHTMLElement2_Release(elem2);




More information about the wine-cvs mailing list