mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +00:00
mshtml: Removed invalid nsAString_InitDepend from HTMLTableRow_put_bgColor and fixed error handling.
This commit is contained in:
parent
4f0d36d9a0
commit
8192f54998
@ -175,8 +175,9 @@ static HRESULT WINAPI HTMLTableRow_put_bgColor(IHTMLTableRow *iface, VARIANT v)
|
||||
|
||||
TRACE("(%p)->(%s)\n", This, debugstr_variant(&v));
|
||||
|
||||
nsAString_InitDepend(&val, V_BSTR(&v));
|
||||
variant_to_nscolor(&v, &val);
|
||||
if (!variant_to_nscolor(&v, &val))
|
||||
return S_OK;
|
||||
|
||||
nsres = nsIDOMHTMLTableRowElement_SetBgColor(This->nsrow, &val);
|
||||
nsAString_Finish(&val);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user