scrobj: Ignore processing instructions in scriptlet files.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
aa503dac9c
commit
142ef8a7e8
|
@ -1261,8 +1261,18 @@ static const char *debugstr_xml_name(struct scriptlet_factory *factory)
|
||||||
static HRESULT next_xml_node(struct scriptlet_factory *factory, XmlNodeType *node_type)
|
static HRESULT next_xml_node(struct scriptlet_factory *factory, XmlNodeType *node_type)
|
||||||
{
|
{
|
||||||
HRESULT hres;
|
HRESULT hres;
|
||||||
do hres = IXmlReader_Read(factory->xml_reader, node_type);
|
for (;;)
|
||||||
while (hres == S_OK && *node_type == XmlNodeType_Whitespace);
|
{
|
||||||
|
hres = IXmlReader_Read(factory->xml_reader, node_type);
|
||||||
|
if (FAILED(hres)) break;
|
||||||
|
if (*node_type == XmlNodeType_Whitespace) continue;
|
||||||
|
if (*node_type == XmlNodeType_ProcessingInstruction)
|
||||||
|
{
|
||||||
|
FIXME("Ignoring processing instruction\n");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
return hres;
|
return hres;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,9 @@
|
||||||
</registration>
|
</registration>
|
||||||
<public>
|
<public>
|
||||||
<method name="vbAddOne">
|
<method name="vbAddOne">
|
||||||
<PARAMETER name="n"></PARAMETER>
|
<PARAMETER name="n">
|
||||||
|
<?pi xxx="yyy"?>
|
||||||
|
</PARAMETER>
|
||||||
</method>
|
</method>
|
||||||
<method name="jsAddTwo" />
|
<method name="jsAddTwo" />
|
||||||
<method name="wtTest">
|
<method name="wtTest">
|
||||||
|
|
Loading…
Reference in New Issue