mshtml: Add support for V_I4 in IHTMLStyle put_zIndex.

This commit is contained in:
Alistair Leslie-Hughes 2008-12-10 11:42:08 +11:00 committed by Alexandre Julliard
parent abedd774fb
commit a7fccdaaf0
1 changed files with 7 additions and 0 deletions

View File

@ -1716,6 +1716,13 @@ static HRESULT WINAPI HTMLStyle_put_zIndex(IHTMLStyle *iface, VARIANT v)
switch(V_VT(&v)) {
case VT_BSTR:
return set_style_attr(This, STYLEID_Z_INDEX, V_BSTR(&v), 0);
case VT_I4: {
WCHAR value[14];
static const WCHAR format[] = {'%','d',0};
wsprintfW(value, format, V_I4(&v));
return set_style_attr(This, STYLEID_Z_INDEX, value, 0);
}
default:
FIXME("unimplemented vt %d\n", V_VT(&v));
return E_NOTIMPL;