From 9397fb2ad76f4ea581313f3b28e90dc7eb5eb909 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Fri, 4 Nov 2011 23:27:39 +0300 Subject: [PATCH] msxml3: 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 c4610955e87..3d32b3204c1 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 eeff419e4f9..197a5ac5c06 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);