Owen Rudge : wsdapi: Ensure text node parent is NULL before calling WSDXMLAddChild.

Alexandre Julliard julliard at winehq.org
Thu Apr 19 16:54:19 CDT 2018


Module: wine
Branch: master
Commit: 3cd8986e93c98713aae17d2493e1c0349c99e290
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=3cd8986e93c98713aae17d2493e1c0349c99e290

Author: Owen Rudge <orudge at codeweavers.com>
Date:   Tue Apr 17 23:04:26 2018 +0100

wsdapi: Ensure text node parent is NULL before calling WSDXMLAddChild.

Signed-off-by: Owen Rudge <orudge at codeweavers.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wsdapi/soap.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/wsdapi/soap.c b/dlls/wsdapi/soap.c
index 8bd6b71..ad83a88 100644
--- a/dlls/wsdapi/soap.c
+++ b/dlls/wsdapi/soap.c
@@ -512,6 +512,7 @@ static HRESULT duplicate_element(WSDXML_ELEMENT *parent, const WSDXML_ELEMENT *n
             text_node = WSDAllocateLinkedMemory(new_element, sizeof(WSDXML_TEXT));
             if (text_node == NULL) goto failed;
 
+            text_node->Node.Parent = NULL;
             text_node->Node.Next = NULL;
             text_node->Node.Type = TextType;
             text_node->Text = duplicate_string(text_node, ((WSDXML_TEXT *)cur_node)->Text);




More information about the wine-cvs mailing list