Commit 2702dfff authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Always initialize output in exec_fontname.

parent ebc89a02
......@@ -586,6 +586,9 @@ static HRESULT exec_fontname(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in,
DWORD len;
nsresult nsres;
V_VT(out) = VT_BSTR;
V_BSTR(out) = NULL;
nsparam = create_nscommand_params();
nsres = get_ns_command_state(This->nscontainer, NSCMD_FONTFACE, nsparam);
......@@ -600,7 +603,6 @@ static HRESULT exec_fontname(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in,
MultiByteToWideChar(CP_ACP, 0, stra, -1, strw, -1);
nsfree(stra);
V_VT(out) = VT_BSTR;
V_BSTR(out) = SysAllocString(strw);
mshtml_free(strw);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment