mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 18:04:21 +00:00
webservices: Fix handling of namespace attributes in WsWriteNode.
Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
16226c44da
commit
6d2f4471ed
|
@ -4472,9 +4472,20 @@ static HRESULT write_set_attributes( struct writer *writer, WS_XML_ATTRIBUTE **a
|
||||||
|
|
||||||
for (i = 0; i < count; i++)
|
for (i = 0; i < count; i++)
|
||||||
{
|
{
|
||||||
if ((hr = write_add_attribute( writer, attrs[i]->prefix, attrs[i]->localName, attrs[i]->ns,
|
const WS_XML_STRING *prefix = attrs[i]->prefix;
|
||||||
attrs[i]->singleQuote )) != S_OK) return hr;
|
const WS_XML_STRING *localname = attrs[i]->localName;
|
||||||
if ((hr = write_set_attribute_value( writer, attrs[i]->value )) != S_OK) return hr;
|
const WS_XML_STRING *ns = attrs[i]->ns;
|
||||||
|
BOOL single = attrs[i]->singleQuote;
|
||||||
|
|
||||||
|
if (attrs[i]->isXmlNs)
|
||||||
|
{
|
||||||
|
if ((hr = add_namespace_attribute( writer, prefix, ns, single )) != S_OK) return hr;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if ((hr = write_add_attribute( writer, prefix, localname, ns, single )) != S_OK) return hr;
|
||||||
|
if ((hr = write_set_attribute_value( writer, attrs[i]->value )) != S_OK) return hr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue