mshtml: Init nsAString in HTMLElement2_get_dir.

This commit is contained in:
Piotr Caban 2013-04-29 18:42:13 +02:00 committed by Alexandre Julliard
parent 448a621c5e
commit 123fd68b53
1 changed files with 1 additions and 0 deletions

View File

@ -982,6 +982,7 @@ static HRESULT WINAPI HTMLElement2_get_dir(IHTMLElement2 *iface, BSTR *p)
return S_OK;
}
nsAString_Init(&dir_str, NULL);
nsres = nsIDOMHTMLElement_GetDir(This->nselem, &dir_str);
return return_nsstr(nsres, &dir_str, p);
}