xmllite: Return success when setting XmlReaderProperty_MaxElementDepth property.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2016-10-27 17:34:56 +02:00 committed by Alexandre Julliard
parent 10026466a3
commit 0414332b08
2 changed files with 6 additions and 0 deletions

View File

@ -2600,6 +2600,9 @@ static HRESULT WINAPI xmlreader_SetProperty(IXmlReader* iface, UINT property, LO
if (value < 0 || value > _DtdProcessing_Last) return E_INVALIDARG;
This->dtdmode = value;
break;
case XmlReaderProperty_MaxElementDepth:
FIXME("Ignoring MaxElementDepth %ld\n", value);
break;
default:
FIXME("Unimplemented property (%u)\n", property);
return E_NOTIMPL;

View File

@ -1796,6 +1796,9 @@ static void test_reader_properties(void)
hr = IXmlReader_SetProperty(reader, XmlReaderProperty_MultiLanguage, 0);
ok(hr == S_OK, "SetProperty failed: %08x\n", hr);
hr = IXmlReader_SetProperty(reader, XmlReaderProperty_MaxElementDepth, 0);
ok(hr == S_OK, "SetProperty failed: %08x\n", hr);
IXmlReader_Release(reader);
}