>From 417f1e1d8be4b3c325f5e08c3fe6684b3ee1af47 Mon Sep 17 00:00:00 2001
From: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Date: Mon, 26 Sep 2011 20:19:45 +1000
Subject: [PATCH] IID_IHTMLCurrentStyle4 isn't supported on IE6
To: wine-patches <wine-patches@winehq.org>

---
 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 25d462b..6aa8eca 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
 };
 
@@ -4582,8 +4581,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);
-- 
1.7.4.1

