mshtml: Always initialize output in exec_fontname.

This commit is contained in:
Jacek Caban 2007-11-20 01:50:19 +01:00 committed by Alexandre Julliard
parent ebc89a02d3
commit 2702dfffbf
1 changed files with 3 additions and 1 deletions

View File

@ -586,6 +586,9 @@ static HRESULT exec_fontname(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in,
DWORD len; DWORD len;
nsresult nsres; nsresult nsres;
V_VT(out) = VT_BSTR;
V_BSTR(out) = NULL;
nsparam = create_nscommand_params(); nsparam = create_nscommand_params();
nsres = get_ns_command_state(This->nscontainer, NSCMD_FONTFACE, nsparam); 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); MultiByteToWideChar(CP_ACP, 0, stra, -1, strw, -1);
nsfree(stra); nsfree(stra);
V_VT(out) = VT_BSTR;
V_BSTR(out) = SysAllocString(strw); V_BSTR(out) = SysAllocString(strw);
mshtml_free(strw); mshtml_free(strw);
} }