Jacek Caban : mshtml: Initialize nsAString in IHTMLDocument3::get_dir.

Alexandre Julliard julliard at winehq.org
Wed Jan 25 13:18:51 CST 2017


Module: wine
Branch: master
Commit: 4823119a79152f7cf3808b9744e2143776970edb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4823119a79152f7cf3808b9744e2143776970edb

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Tue Jan 24 13:26:25 2017 +0100

mshtml: Initialize nsAString in IHTMLDocument3::get_dir.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mshtml/htmldoc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/mshtml/htmldoc.c b/dlls/mshtml/htmldoc.c
index 47e087d..cf9344f 100644
--- a/dlls/mshtml/htmldoc.c
+++ b/dlls/mshtml/htmldoc.c
@@ -2207,6 +2207,7 @@ static HRESULT WINAPI HTMLDocument3_get_dir(IHTMLDocument3 *iface, BSTR *p)
         return E_UNEXPECTED;
     }
 
+    nsAString_Init(&dir_str, NULL);
     nsres = nsIDOMHTMLDocument_GetDir(This->doc_node->nsdoc, &dir_str);
     return return_nsstr(nsres, &dir_str, p);
 }




More information about the wine-cvs mailing list