[PATCH 3/6] webservices: Don't write a colon for namespace attributes with empty prefix.
Hans Leidekker
hans at codeweavers.com
Wed Jan 24 07:29:59 CST 2018
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
---
dlls/webservices/writer.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/webservices/writer.c b/dlls/webservices/writer.c
index 08b341034e..b7dab3a930 100644
--- a/dlls/webservices/writer.c
+++ b/dlls/webservices/writer.c
@@ -1482,11 +1482,11 @@ static HRESULT write_namespace_attribute_text( struct writer *writer, const WS_X
/* ' xmlns:prefix="namespace"' */
size = attr->ns->length + 9 /* ' xmlns=""' */;
- if (attr->prefix) size += attr->prefix->length + 1 /* ':' */;
+ if (attr->prefix && attr->prefix->length) size += attr->prefix->length + 1 /* ':' */;
if ((hr = write_grow_buffer( writer, size )) != S_OK) return hr;
write_bytes( writer, (const BYTE *)" xmlns", 6 );
- if (attr->prefix)
+ if (attr->prefix && attr->prefix->length)
{
write_char( writer, ':' );
write_bytes( writer, attr->prefix->bytes, attr->prefix->length );
--
2.11.0
More information about the wine-devel
mailing list