msxml3: Fix a few error messages.
This commit is contained in:
parent
2f0e73f896
commit
54d949fbe8
|
@ -2656,9 +2656,15 @@ static HRESULT WINAPI domdoc_validateNode(
|
|||
{
|
||||
++validated;
|
||||
/* TODO: get a real error code here */
|
||||
TRACE("schema validation failed\n");
|
||||
if (hr != S_OK)
|
||||
if (hr == S_OK)
|
||||
{
|
||||
TRACE("schema validation succeeded\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
ERR("schema validation failed\n");
|
||||
err_code = E_XML_INVALID;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -2669,7 +2675,7 @@ static HRESULT WINAPI domdoc_validateNode(
|
|||
|
||||
if (!validated)
|
||||
{
|
||||
TRACE("no DTD or schema found\n");
|
||||
ERR("no DTD or schema found\n");
|
||||
err_code = E_XML_NODTD;
|
||||
hr = S_FALSE;
|
||||
}
|
||||
|
|
|
@ -1356,6 +1356,8 @@ HRESULT SchemaCache_validate_tree(IXMLDOMSchemaCollection2* iface, xmlNodePtr tr
|
|||
* do we try to load from that? */
|
||||
if (schema)
|
||||
return Schema_validate_tree(schema, tree);
|
||||
else
|
||||
WARN("no schema found for xmlns=%s\n", get_node_nsURI(tree));
|
||||
|
||||
return E_FAIL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue