Jacek Caban : mshtml: Correctly handle flags in IHTMLElement:setAttribute.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Nov 28 12:49:04 CST 2014
Module: wine
Branch: master
Commit: 0bb1ed41015711911d641cf667b2c651f64c8a07
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0bb1ed41015711911d641cf667b2c651f64c8a07
Author: Jacek Caban <jacek at codeweavers.com>
Date: Fri Nov 28 16:19:15 2014 +0100
mshtml: Correctly handle flags in IHTMLElement:setAttribute.
---
dlls/mshtml/htmlelem.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/mshtml/htmlelem.c b/dlls/mshtml/htmlelem.c
index a24d497..7d5813a 100644
--- a/dlls/mshtml/htmlelem.c
+++ b/dlls/mshtml/htmlelem.c
@@ -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);
hres = IDispatchEx_GetDispID(&This->node.dispex.IDispatchEx_iface, strAttributeName,
- fdexNameCaseInsensitive | fdexNameEnsure, &dispid);
+ (lFlags&1 ? fdexNameCaseSensitive : fdexNameCaseInsensitive) | fdexNameEnsure, &dispid);
if(FAILED(hres))
return hres;
@@ -626,9 +626,8 @@ static HRESULT WINAPI HTMLElement_setAttribute(IHTMLElement *iface, BSTR strAttr
dispParams.rgdispidNamedArgs = &dispidNamed;
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);
- return hres;
}
static HRESULT WINAPI HTMLElement_getAttribute(IHTMLElement *iface, BSTR strAttributeName,
More information about the wine-cvs
mailing list