mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
mshtml: Removed invalid nsAString_InitDepend from HTMLTable_put_bgColor and fixed error handling.
This commit is contained in:
parent
8b81af32ae
commit
c49bb25950
@ -251,11 +251,11 @@ static HRESULT WINAPI HTMLTable_put_bgColor(IHTMLTable *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 = nsIDOMHTMLTableElement_SetBgColor(This->nstable, &val);
|
||||
nsAString_Finish(&val);
|
||||
|
||||
if (NS_FAILED(nsres)){
|
||||
ERR("Set BgColor(%s) failed!\n", debugstr_variant(&v));
|
||||
return E_FAIL;
|
||||
|
Loading…
Reference in New Issue
Block a user