Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
54ef8711
Commit
54ef8711
authored
Jun 08, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Fixed DISPID_ONTOOLBAR test on IE7.
parent
53339232
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
12 deletions
+16
-12
webbrowser.c
dlls/shdocvw/tests/webbrowser.c
+15
-11
webbrowser.c
dlls/shdocvw/webbrowser.c
+1
-1
No files found.
dlls/shdocvw/tests/webbrowser.c
View file @
54ef8711
...
...
@@ -422,14 +422,18 @@ static HRESULT WINAPI WebBrowserEvents2_QueryInterface(IDispatch *iface, REFIID
return
E_NOINTERFACE
;
}
#define test_invoke_bool(p
) _test_invoke_bool(__LINE__,p
)
static
void
_test_invoke_bool
(
unsigned
line
,
const
DISPPARAMS
*
params
)
#define test_invoke_bool(p
,s) _test_invoke_bool(__LINE__,p,s
)
static
void
_test_invoke_bool
(
unsigned
line
,
const
DISPPARAMS
*
params
,
BOOL
strict
)
{
ok_
(
__FILE__
,
line
)
(
params
->
rgvarg
!=
NULL
,
"rgvarg == NULL
\n
"
);
ok_
(
__FILE__
,
line
)
(
params
->
cArgs
==
1
,
"cArgs=%d, expected 1
\n
"
,
params
->
cArgs
);
ok_
(
__FILE__
,
line
)
(
V_VT
(
params
->
rgvarg
)
==
VT_BOOL
,
"V_VT(arg)=%d
\n
"
,
V_VT
(
params
->
rgvarg
));
ok_
(
__FILE__
,
line
)
(
V_BOOL
(
params
->
rgvarg
)
==
exvb
,
"V_VT(arg)=%x, expected %x
\n
"
,
V_BOOL
(
params
->
rgvarg
),
exvb
);
if
(
strict
)
ok_
(
__FILE__
,
line
)
(
V_BOOL
(
params
->
rgvarg
)
==
exvb
,
"V_VT(arg)=%x, expected %x
\n
"
,
V_BOOL
(
params
->
rgvarg
),
exvb
);
else
ok_
(
__FILE__
,
line
)
(
!
V_BOOL
(
params
->
rgvarg
)
==
!
exvb
,
"V_VT(arg)=%x, expected %x
\n
"
,
V_BOOL
(
params
->
rgvarg
),
exvb
);
}
static
void
test_OnBeforeNavigate
(
const
VARIANT
*
disp
,
const
VARIANT
*
url
,
const
VARIANT
*
flags
,
...
...
@@ -598,37 +602,37 @@ static HRESULT WINAPI WebBrowserEvents2_Invoke(IDispatch *iface, DISPID dispIdMe
case
DISPID_ONMENUBAR
:
CHECK_EXPECT
(
Invoke_ONMENUBAR
);
test_invoke_bool
(
pDispParams
);
test_invoke_bool
(
pDispParams
,
TRUE
);
break
;
case
DISPID_ONADDRESSBAR
:
CHECK_EXPECT
(
Invoke_ONADDRESSBAR
);
test_invoke_bool
(
pDispParams
);
test_invoke_bool
(
pDispParams
,
TRUE
);
break
;
case
DISPID_ONSTATUSBAR
:
CHECK_EXPECT
(
Invoke_ONSTATUSBAR
);
test_invoke_bool
(
pDispParams
);
test_invoke_bool
(
pDispParams
,
TRUE
);
break
;
case
DISPID_ONTOOLBAR
:
CHECK_EXPECT
(
Invoke_ONTOOLBAR
);
test_invoke_bool
(
pDispParams
);
test_invoke_bool
(
pDispParams
,
FALSE
);
break
;
case
DISPID_ONFULLSCREEN
:
CHECK_EXPECT
(
Invoke_ONFULLSCREEN
);
test_invoke_bool
(
pDispParams
);
test_invoke_bool
(
pDispParams
,
TRUE
);
break
;
case
DISPID_ONTHEATERMODE
:
CHECK_EXPECT
(
Invoke_ONTHEATERMODE
);
test_invoke_bool
(
pDispParams
);
test_invoke_bool
(
pDispParams
,
TRUE
);
break
;
case
DISPID_WINDOWSETRESIZABLE
:
CHECK_EXPECT
(
Invoke_WINDOWSETRESIZABLE
);
test_invoke_bool
(
pDispParams
);
test_invoke_bool
(
pDispParams
,
TRUE
);
break
;
default:
...
...
dlls/shdocvw/webbrowser.c
View file @
54ef8711
...
...
@@ -627,7 +627,7 @@ static HRESULT WINAPI WebBrowser_put_ToolBar(IWebBrowser2 *iface, int Value)
* inform the embedder about the tool bar change. */
V_VT
(
&
arg
)
=
VT_BOOL
;
V_BOOL
(
&
arg
)
=
Value
;
V_BOOL
(
&
arg
)
=
This
->
tool_bar
;
call_sink
(
This
->
doc_host
.
cps
.
wbe2
,
DISPID_ONTOOLBAR
,
&
dispparams
);
return
S_OK
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment