msxml3/test: Fix a typo in test node_to_string().

Huang, Zhangrong hzhrong at gmail.com
Wed Jul 2 11:22:00 CDT 2008


Hi,
Pls see dlls/msxml3/tests/domdoc.c

static void node_to_string(IXMLDOMNode *node, char *buf)
........................................
            int pos = get_node_position(node);
            DOMNodeType parent_type = NODE_INVALID;
            r = IXMLDOMNode_get_parentNode(node, &new_node);

     ^^^^^^^^^^
            /* currently wine doesn't create a node for the <?xml ...
?>. To be able to test query
             * results we "fix" it */
            if (r == S_OK)
                ole_check(IXMLDOMNode_get_nodeType(node, &parent_type));

      ^^^^^^   ^^^^^^^^^^^^^

To get parent_type, I think we must pass new_node not node.


ChangeLog:
    msxml3/test: Fix a typo in test node_to_string().


-- 
$ apt-get moo
 (__)
 (oo)
 /------\/
 / | ||
 * /\---/\
 ~~ ~~
...."Have you mooed today?"...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-msxml3-test-Fix-a-typo-in-test-node_to_string.patch
Type: application/mbox
Size: 1119 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080703/53c150b8/attachment.bin 


More information about the wine-patches mailing list