mshtml: Initialize nsAString in IHTMLDocument3::get_dir.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2017-01-24 13:26:25 +01:00 committed by Alexandre Julliard
parent 042b41dd57
commit 4823119a79
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}