>From c5b43e626bec5bb77adcf1814ea2dd24601acbec Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov@codeweavers.com>
Date: Fri, 4 Nov 2011 23:27:39 +0300
Subject: [PATCH 2/6] Implement get_srcText()

---
 dlls/msxml3/parseerror.c   |   10 ++++++++--
 dlls/msxml3/tests/domdoc.c |    2 +-
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/dlls/msxml3/parseerror.c b/dlls/msxml3/parseerror.c
index c461095..3d32b32 100644
--- a/dlls/msxml3/parseerror.c
+++ b/dlls/msxml3/parseerror.c
@@ -243,8 +243,14 @@ static HRESULT WINAPI parseError_get_srcText(
     BSTR *srcText )
 {
     parse_error_t *This = impl_from_IXMLDOMParseError( iface );
-    FIXME("(%p)->(%p)\n", This, srcText);
-    return E_NOTIMPL;
+
+    TRACE("(%p)->(%p)\n", This, srcText);
+
+    if (!srcText) return E_INVALIDARG;
+
+    *srcText = SysAllocString(This->srcText);
+
+    return S_OK;
 }
 
 static HRESULT WINAPI parseError_get_line(
diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c
index eeff419..197a5ac 100644
--- a/dlls/msxml3/tests/domdoc.c
+++ b/dlls/msxml3/tests/domdoc.c
@@ -10767,7 +10767,7 @@ static void test_parseerror(void)
     EXPECT_HR(hr, E_INVALIDARG);
 
     hr = IXMLDOMParseError_get_srcText(error, NULL);
-    todo_wine EXPECT_HR(hr, E_INVALIDARG);
+    EXPECT_HR(hr, E_INVALIDARG);
 
     hr = IXMLDOMParseError_get_linepos(error, NULL);
     EXPECT_HR(hr, E_INVALIDARG);
-- 
1.5.6.5


