Commit 75681ef3 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msxml3: Added support for SafeArrays in ISAXXMLReader_parse.

parent bba7eb58
...@@ -1064,6 +1064,25 @@ static HRESULT WINAPI isaxxmlreader_parse( ...@@ -1064,6 +1064,25 @@ static HRESULT WINAPI isaxxmlreader_parse(
if(xmlParseDocument(locator->pParserCtxt)) hr = E_FAIL; if(xmlParseDocument(locator->pParserCtxt)) hr = E_FAIL;
else hr = locator->ret; else hr = locator->ret;
break; break;
case VT_ARRAY|VT_UI1:
locator->pParserCtxt = xmlNewParserCtxt();
if(!locator->pParserCtxt)
{
hr = E_FAIL;
break;
}
hr = SafeArrayAccessData(V_ARRAY(&varInput), (void**)&data);
if(hr != S_OK) break;
xmlSetupParserForBuffer(locator->pParserCtxt, data, NULL);
SafeArrayUnaccessData(V_ARRAY(&varInput));
locator->pParserCtxt->sax = &locator->saxreader->sax;
locator->pParserCtxt->userData = locator;
if(xmlParseDocument(locator->pParserCtxt)) hr = E_FAIL;
else hr = locator->ret;
break;
default: default:
hr = E_NOTIMPL; hr = E_NOTIMPL;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment