Jacek Caban : mshtml: Use proper type for text node in exec_hyperlink.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Sep 30 14:28:29 CDT 2014
Module: wine
Branch: master
Commit: 07751840acd8d9a7af2c0ebb47fff5810c11d858
URL: http://source.winehq.org/git/wine.git/?a=commit;h=07751840acd8d9a7af2c0ebb47fff5810c11d858
Author: Jacek Caban <jacek at codeweavers.com>
Date: Tue Sep 30 10:30:33 2014 +0200
mshtml: Use proper type for text node in exec_hyperlink.
---
dlls/mshtml/editor.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/dlls/mshtml/editor.c b/dlls/mshtml/editor.c
index 14aab53..b059a95 100644
--- a/dlls/mshtml/editor.c
+++ b/dlls/mshtml/editor.c
@@ -1170,13 +1170,14 @@ static HRESULT exec_hyperlink(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in,
/* create an element with text of URL */
if (insert_link_at_caret) {
- nsIDOMNode *text_node, *unused_node;
+ nsIDOMNode *unused_node;
+ nsIDOMText *text_node;
- nsIDOMHTMLDocument_CreateTextNode(This->doc_node->nsdoc, &ns_url, (nsIDOMText **)&text_node);
+ nsIDOMHTMLDocument_CreateTextNode(This->doc_node->nsdoc, &ns_url, &text_node);
/* wrap the <a> tags around the text element */
- nsIDOMHTMLElement_AppendChild(anchor_elem, text_node, &unused_node);
- nsIDOMNode_Release(text_node);
+ nsIDOMHTMLElement_AppendChild(anchor_elem, (nsIDOMNode*)text_node, &unused_node);
+ nsIDOMText_Release(text_node);
nsIDOMNode_Release(unused_node);
}
More information about the wine-cvs
mailing list