mshtml: Init nsAString in HTMLElement2_get_dir.
This commit is contained in:
parent
448a621c5e
commit
123fd68b53
|
@ -982,6 +982,7 @@ static HRESULT WINAPI HTMLElement2_get_dir(IHTMLElement2 *iface, BSTR *p)
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nsAString_Init(&dir_str, NULL);
|
||||||
nsres = nsIDOMHTMLElement_GetDir(This->nselem, &dir_str);
|
nsres = nsIDOMHTMLElement_GetDir(This->nselem, &dir_str);
|
||||||
return return_nsstr(nsres, &dir_str, p);
|
return return_nsstr(nsres, &dir_str, p);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue