>From 809b8181fc57407da98141ededdacf775af3cdc3 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov@codeweavers.com>
Date: Tue, 22 Nov 2011 21:05:19 +0300
Subject: [PATCH 1/1] Couple of tests for unusual behaviour of ISupporterrorInfo

---
 dlls/msxml3/tests/domdoc.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c
index e72e1f3..8757886 100644
--- a/dlls/msxml3/tests/domdoc.c
+++ b/dlls/msxml3/tests/domdoc.c
@@ -10739,6 +10739,7 @@ static void test_supporterrorinfo(void)
     IXMLDOMDocument *doc;
     IUnknown *unk;
     REFIID *iid;
+    void *dummy;
     HRESULT hr;
 
     doc = create_document_version(60, &IID_IXMLDOMDocument3);
@@ -10756,6 +10757,13 @@ static void test_supporterrorinfo(void)
     hr = IXMLDOMDocument_QueryInterface(doc, &IID_ISupportErrorInfo, (void**)&info2);
     EXPECT_HR(hr, S_OK);
     ok(errorinfo != info2, "got %p, %p\n", info2, errorinfo);
+
+    /* error interface can't be queried back for DOM interface */
+    hr = ISupportErrorInfo_QueryInterface(info2, &IID_IXMLDOMDocument, &dummy);
+    EXPECT_HR(hr, E_NOINTERFACE);
+    hr = ISupportErrorInfo_QueryInterface(info2, &IID_IXMLDOMNode, &dummy);
+    EXPECT_HR(hr, E_NOINTERFACE);
+
     ISupportErrorInfo_Release(info2);
 
     iid = iids;
-- 
1.5.6.5

