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
a14a75b8
Commit
a14a75b8
authored
Feb 04, 2009
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Feb 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Correct OnAmbientPropertyChange regression.
parent
601a1364
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
12 deletions
+19
-12
oleobject.c
dlls/shdocvw/oleobject.c
+3
-3
webbrowser.c
dlls/shdocvw/tests/webbrowser.c
+16
-9
No files found.
dlls/shdocvw/oleobject.c
View file @
a14a75b8
...
...
@@ -719,9 +719,9 @@ static HRESULT WINAPI OleControl_OnAmbientPropertyChange(IOleControl *iface, DIS
switch
(
dispID
)
{
case
DISPID_UNKNOWN
:
/* Unknown means multiple properties changed, so check them all.
*/
on_offlineconnected_change
(
This
);
on_silent_change
(
This
);
/* Unknown means multiple properties changed, so check them all.
* BUT the Webbrowser OleControl object doesnt appear to do this.
*/
return
S_OK
;
case
DISPID_AMBIENT_OFFLINEIFNOTCONNECTED
:
return
on_offlineconnected_change
(
This
);
...
...
dlls/shdocvw/tests/webbrowser.c
View file @
a14a75b8
...
...
@@ -69,6 +69,9 @@ DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0);
expect_ ## func = called_ ## func = FALSE; \
}while(0)
#define CLEAR_CALLED(func) \
expect_ ## func = called_ ## func = FALSE
DEFINE_EXPECT
(
GetContainer
);
DEFINE_EXPECT
(
Site_GetWindow
);
DEFINE_EXPECT
(
ShowObject
);
...
...
@@ -1787,15 +1790,19 @@ static void test_ambient_unknown(IWebBrowser2 *wb, IOleControl *control, BOOL is
hres
=
IOleControl_OnAmbientPropertyChange
(
control
,
DISPID_UNKNOWN
);
ok
(
hres
==
S_OK
,
"OnAmbientPropertyChange failed %08x
\n
"
,
hres
);
if
(
is_clientsite
)
{
CHECK_CALLED
(
Invoke_AMBIENT_OFFLINEIFNOTCONNECTED
);
CHECK_CALLED
(
Invoke_AMBIENT_SILENT
);
todo_wine
CHECK_CALLED
(
Invoke_AMBIENT_USERMODE
);
todo_wine
CHECK_CALLED
(
Invoke_AMBIENT_DLCONTROL
);
todo_wine
CHECK_CALLED
(
Invoke_AMBIENT_USERAGENT
);
todo_wine
CHECK_CALLED
(
Invoke_AMBIENT_PALETTE
);
}
CHECK_EXPECT
(
Invoke_AMBIENT_OFFLINEIFNOTCONNECTED
);
CHECK_EXPECT
(
Invoke_AMBIENT_SILENT
);
CHECK_EXPECT
(
Invoke_AMBIENT_USERMODE
);
CHECK_EXPECT
(
Invoke_AMBIENT_DLCONTROL
);
CHECK_EXPECT
(
Invoke_AMBIENT_USERAGENT
);
CHECK_EXPECT
(
Invoke_AMBIENT_PALETTE
);
CLEAR_CALLED
(
Invoke_AMBIENT_OFFLINEIFNOTCONNECTED
);
CLEAR_CALLED
(
Invoke_AMBIENT_SILENT
);
CLEAR_CALLED
(
Invoke_AMBIENT_USERMODE
);
CLEAR_CALLED
(
Invoke_AMBIENT_DLCONTROL
);
CLEAR_CALLED
(
Invoke_AMBIENT_USERAGENT
);
CLEAR_CALLED
(
Invoke_AMBIENT_PALETTE
);
}
static
void
test_wb_funcs
(
IUnknown
*
unk
,
BOOL
is_clientsite
)
...
...
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