Commit 893eec9f authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Don't check out VT in exec_fontsize.

parent 955d5247
......@@ -662,18 +662,9 @@ static HRESULT exec_fontsize(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in,
if(out) {
WCHAR val[10] = {0};
switch(V_VT(out)) {
case VT_I4:
get_font_size(This, val);
V_I4(out) = strtolW(val, NULL, 10);
break;
case VT_BSTR:
get_font_size(This, val);
V_BSTR(out) = SysAllocString(val);
break;
default:
FIXME("unsupported vt %d\n", V_VT(out));
}
get_font_size(This, val);
V_VT(out) = VT_I4;
V_I4(out) = strtolW(val, NULL, 10);
}
if(in) {
......
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