[PATCH] msxml3: mirror the NULL checking logic (Coverity)

Marcus Meissner marcus at jet.franken.de
Sat Mar 8 02:43:55 CST 2014


1191501 Dereference after null check
---
 dlls/msxml3/mxwriter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/msxml3/mxwriter.c b/dlls/msxml3/mxwriter.c
index 01e21a7..6c2eeb8 100644
--- a/dlls/msxml3/mxwriter.c
+++ b/dlls/msxml3/mxwriter.c
@@ -1202,7 +1202,7 @@ static void mxwriter_write_starttag(mxwriter *writer, const WCHAR *qname, int le
     write_node_indent(writer);
 
     write_output_buffer(writer->buffer, ltW, 1);
-    write_output_buffer(writer->buffer, qname, len);
+    write_output_buffer(writer->buffer, qname ? qname : emptyW, qname ? len : 0);
     writer_inc_indent(writer);
 }
 
-- 
1.8.4.5




More information about the wine-patches mailing list