mshtml: Correctly handle flags in IHTMLElement:setAttribute.
This commit is contained in:
parent
5f913d5afb
commit
0bb1ed4101
|
@ -617,7 +617,7 @@ static HRESULT WINAPI HTMLElement_setAttribute(IHTMLElement *iface, BSTR strAttr
|
||||||
TRACE("(%p)->(%s %s %08x)\n", This, debugstr_w(strAttributeName), debugstr_variant(&AttributeValue), lFlags);
|
TRACE("(%p)->(%s %s %08x)\n", This, debugstr_w(strAttributeName), debugstr_variant(&AttributeValue), lFlags);
|
||||||
|
|
||||||
hres = IDispatchEx_GetDispID(&This->node.dispex.IDispatchEx_iface, strAttributeName,
|
hres = IDispatchEx_GetDispID(&This->node.dispex.IDispatchEx_iface, strAttributeName,
|
||||||
fdexNameCaseInsensitive | fdexNameEnsure, &dispid);
|
(lFlags&1 ? fdexNameCaseSensitive : fdexNameCaseInsensitive) | fdexNameEnsure, &dispid);
|
||||||
if(FAILED(hres))
|
if(FAILED(hres))
|
||||||
return hres;
|
return hres;
|
||||||
|
|
||||||
|
@ -626,9 +626,8 @@ static HRESULT WINAPI HTMLElement_setAttribute(IHTMLElement *iface, BSTR strAttr
|
||||||
dispParams.rgdispidNamedArgs = &dispidNamed;
|
dispParams.rgdispidNamedArgs = &dispidNamed;
|
||||||
dispParams.rgvarg = &AttributeValue;
|
dispParams.rgvarg = &AttributeValue;
|
||||||
|
|
||||||
hres = IDispatchEx_InvokeEx(&This->node.dispex.IDispatchEx_iface, dispid,
|
return IDispatchEx_InvokeEx(&This->node.dispex.IDispatchEx_iface, dispid,
|
||||||
LOCALE_SYSTEM_DEFAULT, DISPATCH_PROPERTYPUT, &dispParams, NULL, &excep, NULL);
|
LOCALE_SYSTEM_DEFAULT, DISPATCH_PROPERTYPUT, &dispParams, NULL, &excep, NULL);
|
||||||
return hres;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI HTMLElement_getAttribute(IHTMLElement *iface, BSTR strAttributeName,
|
static HRESULT WINAPI HTMLElement_getAttribute(IHTMLElement *iface, BSTR strAttributeName,
|
||||||
|
|
Loading…
Reference in New Issue