[2/6] wsdapi: Add code to create SOAP envelope from header and body elements. [try 2]

Vincent Povirk madewokherd at gmail.com
Wed Aug 2 13:17:29 CDT 2017


+static void remove_attribute(WSDXML_ELEMENT *parent, WSDXML_ATTRIBUTE
*attribute)
+{
+    WSDXML_ATTRIBUTE *curAttrib;
+
+    /* Find the last attribute and add this as the next one */
+    curAttrib = parent->FirstAttribute;
+
+    if (curAttrib == attribute)
+    {
+        parent->FirstAttribute = NULL;
+    }

I think this should be parent->FirstAttribute = curAttrib->Next.

+        }
+        else if (curNode->Type == TextType)
+        {
+            textNode = WSDAllocateLinkedMemory(newElement,
sizeof(WSDXML_TEXT));
+            if (textNode == NULL) goto cleanup;
+
+            textNode->Node.Next = NULL;
+            textNode->Node.Parent = newElement;
+            textNode->Node.Type = TextType;
+            textNode->Text = duplicate_string(textNode, ((WSDXML_TEXT
*)curNode)->Text);
+            if (textNode->Text == NULL) goto cleanup;
+        }

You still don't seem to be adding the new text node to newElement.



More information about the wine-devel mailing list