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
43b38e14
Commit
43b38e14
authored
Feb 01, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Feb 01, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Make cookie parameter optional in ConnectionPoint_Advise.
parent
1c1b1c00
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
conpoint.c
dlls/mshtml/conpoint.c
+2
-1
htmldoc.c
dlls/mshtml/tests/htmldoc.c
+4
-0
No files found.
dlls/mshtml/conpoint.c
View file @
43b38e14
...
...
@@ -158,7 +158,8 @@ static HRESULT WINAPI ConnectionPoint_Advise(IConnectionPoint *iface, IUnknown *
}
This
->
sinks
[
i
].
unk
=
sink
;
*
pdwCookie
=
i
+
1
;
if
(
pdwCookie
)
*
pdwCookie
=
i
+
1
;
if
(
!
i
&&
This
->
data
&&
This
->
data
->
on_advise
)
This
->
data
->
on_advise
(
This
->
container
->
outer
,
This
->
data
);
...
...
dlls/mshtml/tests/htmldoc.c
View file @
43b38e14
...
...
@@ -4790,6 +4790,10 @@ static void test_ConnectionPoint(IConnectionPointContainer *container, REFIID ri
if
(
IsEqualGUID
(
&
IID_IPropertyNotifySink
,
riid
))
{
hres
=
IConnectionPoint_Advise
(
cp
,
(
IUnknown
*
)
&
PropertyNotifySink
,
&
cookie
);
ok
(
hres
==
S_OK
,
"Advise failed: %08x
\n
"
,
hres
);
hres
=
IConnectionPoint_Unadvise
(
cp
,
cookie
);
ok
(
hres
==
S_OK
,
"Unadvise failed: %08x
\n
"
,
hres
);
hres
=
IConnectionPoint_Advise
(
cp
,
(
IUnknown
*
)
&
PropertyNotifySink
,
NULL
);
ok
(
hres
==
S_OK
,
"Advise failed: %08x
\n
"
,
hres
);
}
else
if
(
IsEqualGUID
(
&
IID_IDispatch
,
riid
))
{
hres
=
IConnectionPoint_Advise
(
cp
,
(
IUnknown
*
)
&
EventDispatch
,
&
cookie
);
ok
(
hres
==
S_OK
,
"Advise failed: %08x
\n
"
,
hres
);
...
...
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