msxml3: Implement get_srcText().
This commit is contained in:
parent
945dccb7d6
commit
9397fb2ad7
|
@ -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(
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue