Hans Leidekker : webservices: Don' t write a colon for namespace attributes with empty prefix.
Alexandre Julliard
julliard at winehq.org
Wed Jan 24 16:02:31 CST 2018
Module: wine
Branch: master
Commit: 3b6f7148b66f8453fa8667d62fe7e529cc10fb89
URL: https://source.winehq.org/git/wine.git/?a=commit;h=3b6f7148b66f8453fa8667d62fe7e529cc10fb89
Author: Hans Leidekker <hans at codeweavers.com>
Date: Wed Jan 24 14:29:59 2018 +0100
webservices: Don't write a colon for namespace attributes with empty prefix.
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 08b3410..b7dab3a 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 );
More information about the wine-cvs
mailing list