Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
2d454641
Commit
2d454641
authored
Jan 31, 2007
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- activex: misc fixes for properties and events sinks
parent
ebf11a99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
activex/connectioncontainer.cpp
activex/connectioncontainer.cpp
+10
-7
No files found.
activex/connectioncontainer.cpp
View file @
2d454641
...
...
@@ -36,6 +36,8 @@ struct VLCEnumConnectionsDereference
{
CONNECTDATA
cd
;
i
->
second
->
AddRef
();
cd
.
dwCookie
=
i
->
first
;
cd
.
pUnk
=
i
->
second
;
return
cd
;
...
...
@@ -115,12 +117,13 @@ STDMETHODIMP VLCConnectionPoint::Advise(IUnknown *pUnk, DWORD *pdwCookie)
if
(
(
NULL
==
pUnk
)
||
(
NULL
==
pdwCookie
)
)
return
E_POINTER
;
pUnk
->
AddRef
();
*
pdwCookie
=
++
dwCookieCounter
;
_connections
[
*
pdwCookie
]
=
pUnk
;
return
S_OK
;
if
(
SUCCEEDED
(
pUnk
->
QueryInterface
(
_iid
,
(
LPVOID
*
)
&
pUnk
))
)
{
*
pdwCookie
=
++
dwCookieCounter
;
_connections
[
*
pdwCookie
]
=
pUnk
;
return
S_OK
;
}
return
CONNECT_E_CANNOTCONNECT
;
};
STDMETHODIMP
VLCConnectionPoint
::
Unadvise
(
DWORD
pdwCookie
)
...
...
@@ -157,7 +160,7 @@ void VLCConnectionPoint::fireEvent(DISPID dispId, DISPPARAMS *pDispParams)
if
(
NULL
!=
pUnk
)
{
IDispatch
*
pDisp
;
if
(
SUCCEEDED
(
pUnk
->
QueryInterface
(
IID_IDispatch
,
(
LPVOID
*
)
&
pDisp
))
)
if
(
SUCCEEDED
(
pUnk
->
QueryInterface
(
_iid
,
(
LPVOID
*
)
&
pDisp
))
)
{
pDisp
->
Invoke
(
dispId
,
IID_NULL
,
LOCALE_USER_DEFAULT
,
DISPATCH_METHOD
,
pDispParams
,
NULL
,
NULL
,
NULL
);
pDisp
->
Release
();
...
...
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