msxml3: Implement get_srcText().

This commit is contained in:
Nikolay Sivov 2011-11-04 23:27:39 +03:00 committed by Alexandre Julliard
parent 945dccb7d6
commit 9397fb2ad7
2 changed files with 9 additions and 3 deletions

View File

@ -243,8 +243,14 @@ static HRESULT WINAPI parseError_get_srcText(
BSTR *srcText ) BSTR *srcText )
{ {
parse_error_t *This = impl_from_IXMLDOMParseError( iface ); 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( static HRESULT WINAPI parseError_get_line(

View File

@ -10767,7 +10767,7 @@ static void test_parseerror(void)
EXPECT_HR(hr, E_INVALIDARG); EXPECT_HR(hr, E_INVALIDARG);
hr = IXMLDOMParseError_get_srcText(error, NULL); hr = IXMLDOMParseError_get_srcText(error, NULL);
todo_wine EXPECT_HR(hr, E_INVALIDARG); EXPECT_HR(hr, E_INVALIDARG);
hr = IXMLDOMParseError_get_linepos(error, NULL); hr = IXMLDOMParseError_get_linepos(error, NULL);
EXPECT_HR(hr, E_INVALIDARG); EXPECT_HR(hr, E_INVALIDARG);