Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
054049cf
Commit
054049cf
authored
Jul 18, 2006
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- all: fixed object interfaces queries and other fixes as reported by Jacob Lewallen
parent
fb0991c4
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
82 additions
and
57 deletions
+82
-57
activex/connectioncontainer.cpp
activex/connectioncontainer.cpp
+3
-3
activex/connectioncontainer.h
activex/connectioncontainer.h
+9
-5
activex/dataobject.h
activex/dataobject.h
+4
-3
activex/objectsafety.h
activex/objectsafety.h
+4
-3
activex/olecontrol.h
activex/olecontrol.h
+4
-3
activex/oleinplaceactiveobject.h
activex/oleinplaceactiveobject.h
+5
-4
activex/oleinplaceobject.h
activex/oleinplaceobject.h
+5
-4
activex/oleobject.h
activex/oleobject.h
+4
-3
activex/persistpropbag.h
activex/persistpropbag.h
+6
-4
activex/persiststorage.h
activex/persiststorage.h
+6
-4
activex/persiststreaminit.cpp
activex/persiststreaminit.cpp
+1
-1
activex/persiststreaminit.h
activex/persiststreaminit.h
+6
-4
activex/plugin.cpp
activex/plugin.cpp
+2
-1
activex/provideclassinfo.h
activex/provideclassinfo.h
+6
-4
activex/utils.h
activex/utils.h
+5
-2
activex/viewobject.h
activex/viewobject.h
+6
-5
activex/vlccontrol.h
activex/vlccontrol.h
+6
-4
No files found.
activex/connectioncontainer.cpp
View file @
054049cf
...
@@ -101,7 +101,7 @@ STDMETHODIMP VLCConnectionPoint::Advise(IUnknown *pUnk, DWORD *pdwCookie)
...
@@ -101,7 +101,7 @@ STDMETHODIMP VLCConnectionPoint::Advise(IUnknown *pUnk, DWORD *pdwCookie)
pUnk
->
AddRef
();
pUnk
->
AddRef
();
cd
.
pUnk
=
pUnk
;
cd
.
pUnk
=
pUnk
;
*
pdwCookie
=
cd
.
dwCookie
=
_connections
.
size
();
*
pdwCookie
=
cd
.
dwCookie
=
_connections
.
size
()
+
1
;
_connections
.
push_back
(
cd
);
_connections
.
push_back
(
cd
);
...
@@ -110,9 +110,9 @@ STDMETHODIMP VLCConnectionPoint::Advise(IUnknown *pUnk, DWORD *pdwCookie)
...
@@ -110,9 +110,9 @@ STDMETHODIMP VLCConnectionPoint::Advise(IUnknown *pUnk, DWORD *pdwCookie)
STDMETHODIMP
VLCConnectionPoint
::
Unadvise
(
DWORD
pdwCookie
)
STDMETHODIMP
VLCConnectionPoint
::
Unadvise
(
DWORD
pdwCookie
)
{
{
if
(
pdwCookie
<
_connections
.
size
(
)
)
if
(
(
0
<
pdwCookie
)
&&
(
pdwCookie
<=
_connections
.
size
()
)
)
{
{
CONNECTDATA
cd
=
_connections
[
pdwCookie
];
CONNECTDATA
cd
=
_connections
[
pdwCookie
-
1
];
if
(
NULL
!=
cd
.
pUnk
)
if
(
NULL
!=
cd
.
pUnk
)
{
{
cd
.
pUnk
->
Release
();
cd
.
pUnk
->
Release
();
...
...
activex/connectioncontainer.h
View file @
054049cf
...
@@ -39,9 +39,11 @@ public:
...
@@ -39,9 +39,11 @@ public:
// IUnknown methods
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
{
if
(
NULL
==
ppv
)
return
E_POINTER
;
if
(
NULL
==
ppv
)
return
E_POINTER
;
if
(
(
IID_IUnknown
==
riid
)
if
(
(
IID_IUnknown
==
riid
)
&&
(
IID_IConnectionPoint
==
riid
)
)
{
||
(
IID_IConnectionPoint
==
riid
)
)
{
AddRef
();
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
return
NOERROR
;
return
NOERROR
;
...
@@ -95,9 +97,11 @@ public:
...
@@ -95,9 +97,11 @@ public:
// IUnknown methods
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
{
if
(
(
NULL
!=
ppv
)
if
(
NULL
==
ppv
)
&&
(
IID_IUnknown
==
riid
)
return
E_POINTER
;
&&
(
IID_IConnectionPointContainer
==
riid
)
)
{
if
(
(
IID_IUnknown
==
riid
)
||
(
IID_IConnectionPointContainer
==
riid
)
)
{
AddRef
();
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
return
NOERROR
;
return
NOERROR
;
...
...
activex/dataobject.h
View file @
054049cf
...
@@ -37,9 +37,10 @@ public:
...
@@ -37,9 +37,10 @@ public:
// IUnknown methods
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
{
if
(
(
NULL
!=
ppv
)
if
(
NULL
==
ppv
)
&&
(
IID_IUnknown
==
riid
)
return
E_POINTER
;
&&
(
IID_IDataObject
==
riid
)
)
{
if
(
(
IID_IUnknown
==
riid
)
||
(
IID_IDataObject
==
riid
)
)
{
AddRef
();
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
return
NOERROR
;
return
NOERROR
;
...
...
activex/objectsafety.h
View file @
054049cf
...
@@ -67,9 +67,10 @@ public:
...
@@ -67,9 +67,10 @@ public:
// IUnknown methods
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
{
if
(
(
NULL
!=
ppv
)
if
(
NULL
==
ppv
)
&&
(
IID_IUnknown
==
riid
)
return
E_POINTER
;
&&
(
IID_IObjectSafety
==
riid
)
)
if
(
(
IID_IUnknown
==
riid
)
||
(
IID_IObjectSafety
==
riid
)
)
{
{
AddRef
();
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
...
...
activex/olecontrol.h
View file @
054049cf
...
@@ -36,9 +36,10 @@ public:
...
@@ -36,9 +36,10 @@ public:
// IUnknown methods
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
{
if
(
(
NULL
!=
ppv
)
if
(
NULL
==
ppv
)
&&
(
IID_IUnknown
==
riid
)
return
E_POINTER
;
&&
(
IID_IOleControl
==
riid
)
)
if
(
(
IID_IUnknown
==
riid
)
||
(
IID_IOleControl
==
riid
)
)
{
{
AddRef
();
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
...
...
activex/oleinplaceactiveobject.h
View file @
054049cf
...
@@ -36,10 +36,11 @@ public:
...
@@ -36,10 +36,11 @@ public:
// IUnknown methods
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
{
if
(
(
NULL
!=
ppv
)
if
(
NULL
==
ppv
)
&&
(
IID_IUnknown
==
riid
)
return
E_POINTER
;
&&
(
IID_IOleWindow
==
riid
)
if
(
(
IID_IUnknown
==
riid
)
&&
(
IID_IOleInPlaceActiveObject
==
riid
)
)
||
(
IID_IOleWindow
==
riid
)
||
(
IID_IOleInPlaceActiveObject
==
riid
)
)
{
{
AddRef
();
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
...
...
activex/oleinplaceobject.h
View file @
054049cf
...
@@ -34,10 +34,11 @@ public:
...
@@ -34,10 +34,11 @@ public:
// IUnknown methods
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
{
if
(
(
NULL
!=
ppv
)
if
(
NULL
==
ppv
)
&&
(
IID_IUnknown
==
riid
)
return
E_POINTER
;
&&
(
IID_IOleWindow
==
riid
)
if
(
(
IID_IUnknown
==
riid
)
&&
(
IID_IOleInPlaceObject
==
riid
)
)
||
(
IID_IOleWindow
==
riid
)
||
(
IID_IOleInPlaceObject
==
riid
)
)
{
{
AddRef
();
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
...
...
activex/oleobject.h
View file @
054049cf
...
@@ -34,9 +34,10 @@ public:
...
@@ -34,9 +34,10 @@ public:
// IUnknown methods
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
{
if
(
(
NULL
!=
ppv
)
if
(
NULL
==
ppv
)
&&
(
IID_IUnknown
==
riid
)
return
E_POINTER
;
&&
(
IID_IOleObject
==
riid
)
)
if
(
(
IID_IUnknown
==
riid
)
||
(
IID_IOleObject
==
riid
)
)
{
{
AddRef
();
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
...
...
activex/persistpropbag.h
View file @
054049cf
...
@@ -36,10 +36,12 @@ public:
...
@@ -36,10 +36,12 @@ public:
// IUnknown methods
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
{
if
(
(
NULL
!=
ppv
)
if
(
NULL
==
ppv
)
&&
(
IID_IUnknown
==
riid
)
return
E_POINTER
;
&&
(
IID_IPersist
==
riid
)
if
(
(
IID_IUnknown
==
riid
)
&&
(
IID_IPersistPropertyBag
==
riid
)
)
{
||
(
IID_IPersist
==
riid
)
||
(
IID_IPersistPropertyBag
==
riid
)
)
{
AddRef
();
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
return
NOERROR
;
return
NOERROR
;
...
...
activex/persiststorage.h
View file @
054049cf
...
@@ -36,10 +36,12 @@ public:
...
@@ -36,10 +36,12 @@ public:
// IUnknown methods
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
{
if
(
(
NULL
!=
ppv
)
if
(
NULL
==
ppv
)
&&
(
IID_IUnknown
==
riid
)
return
E_POINTER
;
&&
(
IID_IPersist
==
riid
)
if
(
(
IID_IUnknown
==
riid
)
&&
(
IID_IPersistStorage
==
riid
)
)
{
||
(
IID_IPersist
==
riid
)
||
(
IID_IPersistStorage
==
riid
)
)
{
AddRef
();
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
return
NOERROR
;
return
NOERROR
;
...
...
activex/persiststreaminit.cpp
View file @
054049cf
...
@@ -213,7 +213,7 @@ public:
...
@@ -213,7 +213,7 @@ public:
if
(
NULL
==
ppv
)
if
(
NULL
==
ppv
)
return
E_POINTER
;
return
E_POINTER
;
if
(
(
IID_IUnknown
==
riid
)
if
(
(
IID_IUnknown
==
riid
)
&&
(
IID_IPropertyBag
==
riid
)
)
||
(
IID_IPropertyBag
==
riid
)
)
{
{
AddRef
();
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
...
...
activex/persiststreaminit.h
View file @
054049cf
...
@@ -36,10 +36,12 @@ public:
...
@@ -36,10 +36,12 @@ public:
// IUnknown methods
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
{
if
(
(
NULL
!=
ppv
)
if
(
NULL
==
ppv
)
&&
(
IID_IUnknown
==
riid
)
return
E_POINTER
;
&&
(
IID_IPersist
==
riid
)
if
(
(
IID_IUnknown
==
riid
)
&&
(
IID_IPersistStreamInit
==
riid
)
)
{
||
(
IID_IPersist
==
riid
)
||
(
IID_IPersistStreamInit
==
riid
)
)
{
AddRef
();
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
return
NOERROR
;
return
NOERROR
;
...
...
activex/plugin.cpp
View file @
054049cf
...
@@ -180,7 +180,8 @@ STDMETHODIMP VLCPluginClass::QueryInterface(REFIID riid, void **ppv)
...
@@ -180,7 +180,8 @@ STDMETHODIMP VLCPluginClass::QueryInterface(REFIID riid, void **ppv)
if
(
NULL
==
ppv
)
if
(
NULL
==
ppv
)
return
E_INVALIDARG
;
return
E_INVALIDARG
;
if
(
(
IID_IUnknown
==
riid
)
||
(
IID_IClassFactory
==
riid
)
)
if
(
(
IID_IUnknown
==
riid
)
||
(
IID_IClassFactory
==
riid
)
)
{
{
AddRef
();
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
...
...
activex/provideclassinfo.h
View file @
054049cf
...
@@ -36,10 +36,12 @@ public:
...
@@ -36,10 +36,12 @@ public:
// IUnknown methods
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
{
if
(
(
NULL
!=
ppv
)
if
(
NULL
==
ppv
)
&&
(
IID_IUnknown
==
riid
)
return
E_POINTER
;
&&
(
IID_IProvideClassInfo
==
riid
)
if
(
(
IID_IUnknown
==
riid
)
&&
(
IID_IProvideClassInfo2
==
riid
)
)
{
||
(
IID_IProvideClassInfo
==
riid
)
||
(
IID_IProvideClassInfo2
==
riid
)
)
{
AddRef
();
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
return
NOERROR
;
return
NOERROR
;
...
...
activex/utils.h
View file @
054049cf
...
@@ -108,13 +108,16 @@ VLCEnum<T>& VLCEnum<T>::operator=(const VLCEnum<T> &e)
...
@@ -108,13 +108,16 @@ VLCEnum<T>& VLCEnum<T>::operator=(const VLCEnum<T> &e)
template
<
class
T
>
template
<
class
T
>
STDMETHODIMP
VLCEnum
<
T
>::
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
STDMETHODIMP
VLCEnum
<
T
>::
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
{
if
(
NULL
==
ppv
)
return
E_POINTER
;
if
(
NULL
==
ppv
)
return
E_POINTER
;
if
(
(
IID_IUnknown
==
riid
)
if
(
(
IID_IUnknown
==
riid
)
&&
(
_riid
==
riid
)
)
{
||
(
_riid
==
riid
)
)
{
AddRef
();
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
return
NOERROR
;
return
NOERROR
;
}
}
// standalone object
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
};
};
...
...
activex/viewobject.h
View file @
054049cf
...
@@ -37,11 +37,12 @@ public:
...
@@ -37,11 +37,12 @@ public:
// IUnknown methods
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
{
if
(
(
NULL
!=
ppv
)
if
(
NULL
==
ppv
)
&&
(
IID_IUnknown
==
riid
)
return
E_POINTER
;
&&
(
IID_IPersist
==
riid
)
if
(
(
IID_IUnknown
==
riid
)
&&
(
IID_IViewObject
==
riid
)
||
(
IID_IViewObject
==
riid
)
&&
(
IID_IViewObject2
==
riid
)
)
{
||
(
IID_IViewObject2
==
riid
)
)
{
AddRef
();
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
return
NOERROR
;
return
NOERROR
;
...
...
activex/vlccontrol.h
View file @
054049cf
...
@@ -37,10 +37,12 @@ public:
...
@@ -37,10 +37,12 @@ public:
// IUnknown methods
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
{
if
(
(
NULL
!=
ppv
)
if
(
NULL
==
ppv
)
&&
(
IID_IUnknown
==
riid
)
return
E_POINTER
;
&&
(
IID_IDispatch
==
riid
)
if
(
(
IID_IUnknown
==
riid
)
&&
(
IID_IVLCControl
==
riid
)
)
{
||
(
IID_IDispatch
==
riid
)
||
(
IID_IVLCControl
==
riid
)
)
{
AddRef
();
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
return
NOERROR
;
return
NOERROR
;
...
...
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