Module: wine Branch: master Commit: 893eec9ff7991f92dcc190fc4217682d257eb72b URL: http://source.winehq.org/git/wine.git/?a=commit;h=893eec9ff7991f92dcc190fc42...
Author: Jacek Caban jacek@codeweavers.com Date: Fri Jun 22 03:06:02 2007 +0200
mshtml: Don't check out VT in exec_fontsize.
---
dlls/mshtml/editor.c | 15 +++------------ 1 files changed, 3 insertions(+), 12 deletions(-)
diff --git a/dlls/mshtml/editor.c b/dlls/mshtml/editor.c index b727e55..42df6cc 100644 --- a/dlls/mshtml/editor.c +++ b/dlls/mshtml/editor.c @@ -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) {