Commit 1e94d99f authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Normalize bool values before passing them to Gecko.

Fixes events.js tests with llvm-mingw Gecko build. Signed-off-by: 's avatarJacek Caban <jacek@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 9177e80d
...@@ -1225,7 +1225,7 @@ static HRESULT WINAPI DOMUIEvent_initUIEvent(IDOMUIEvent *iface, BSTR type, VARI ...@@ -1225,7 +1225,7 @@ static HRESULT WINAPI DOMUIEvent_initUIEvent(IDOMUIEvent *iface, BSTR type, VARI
return hres; return hres;
nsAString_InitDepend(&type_str, type); 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); NULL /* FIXME */, detail);
nsAString_Finish(&type_str); nsAString_Finish(&type_str);
if(NS_FAILED(nsres)) { if(NS_FAILED(nsres)) {
...@@ -1517,8 +1517,8 @@ static HRESULT WINAPI DOMMouseEvent_initMouseEvent(IDOMMouseEvent *iface, BSTR t ...@@ -1517,8 +1517,8 @@ static HRESULT WINAPI DOMMouseEvent_initMouseEvent(IDOMMouseEvent *iface, BSTR t
nsAString_InitDepend(&type_str, type); nsAString_InitDepend(&type_str, type);
nsres = nsIDOMMouseEvent_InitMouseEvent(This->mouse_event, &type_str, can_bubble, cancelable, nsres = nsIDOMMouseEvent_InitMouseEvent(This->mouse_event, &type_str, can_bubble, cancelable,
NULL /* FIXME */, detail, screen_x, screen_y, NULL /* FIXME */, detail, screen_x, screen_y,
client_x, client_y, ctrl_key, alt_key, shift_key, client_x, client_y, !!ctrl_key, !!alt_key, !!shift_key,
meta_key, button, nstarget); !!meta_key, button, nstarget);
nsAString_Finish(&type_str); nsAString_Finish(&type_str);
if(NS_FAILED(nsres)) { if(NS_FAILED(nsres)) {
FIXME("InitMouseEvent failed: %08x\n", nsres); FIXME("InitMouseEvent failed: %08x\n", nsres);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment