Jacek Caban : mshtml: Normalize bool values before passing them to Gecko.
Alexandre Julliard
julliard at winehq.org
Thu Nov 26 16:31:00 CST 2020
Module: wine
Branch: master
Commit: 1e94d99f3126af09219bcf76b2d2732ca011ad4e
URL: https://source.winehq.org/git/wine.git/?a=commit;h=1e94d99f3126af09219bcf76b2d2732ca011ad4e
Author: Jacek Caban <jacek at codeweavers.com>
Date: Thu Nov 26 14:57:25 2020 +0100
mshtml: Normalize bool values before passing them to Gecko.
Fixes events.js tests with llvm-mingw Gecko build.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mshtml/htmlevent.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/mshtml/htmlevent.c b/dlls/mshtml/htmlevent.c
index 0bf3de54a96..1befd94c742 100644
--- a/dlls/mshtml/htmlevent.c
+++ b/dlls/mshtml/htmlevent.c
@@ -1225,7 +1225,7 @@ static HRESULT WINAPI DOMUIEvent_initUIEvent(IDOMUIEvent *iface, BSTR type, VARI
return hres;
nsAString_InitDepend(&type_str, type);
- nsres = nsIDOMUIEvent_InitUIEvent(This->ui_event, &type_str, can_bubble, cancelable,
+ nsres = nsIDOMUIEvent_InitUIEvent(This->ui_event, &type_str, !!can_bubble, !!cancelable,
NULL /* FIXME */, detail);
nsAString_Finish(&type_str);
if(NS_FAILED(nsres)) {
@@ -1517,8 +1517,8 @@ static HRESULT WINAPI DOMMouseEvent_initMouseEvent(IDOMMouseEvent *iface, BSTR t
nsAString_InitDepend(&type_str, type);
nsres = nsIDOMMouseEvent_InitMouseEvent(This->mouse_event, &type_str, can_bubble, cancelable,
NULL /* FIXME */, detail, screen_x, screen_y,
- client_x, client_y, ctrl_key, alt_key, shift_key,
- meta_key, button, nstarget);
+ client_x, client_y, !!ctrl_key, !!alt_key, !!shift_key,
+ !!meta_key, button, nstarget);
nsAString_Finish(&type_str);
if(NS_FAILED(nsres)) {
FIXME("InitMouseEvent failed: %08x\n", nsres);
More information about the wine-cvs
mailing list