Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
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
Hide 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)
pUnk
->
AddRef
();
cd
.
pUnk
=
pUnk
;
*
pdwCookie
=
cd
.
dwCookie
=
_connections
.
size
();
*
pdwCookie
=
cd
.
dwCookie
=
_connections
.
size
()
+
1
;
_connections
.
push_back
(
cd
);
...
...
@@ -110,9 +110,9 @@ STDMETHODIMP VLCConnectionPoint::Advise(IUnknown *pUnk, 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
)
{
cd
.
pUnk
->
Release
();
...
...
activex/connectioncontainer.h
View file @
054049cf
...
...
@@ -39,9 +39,11 @@ public:
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
if
(
NULL
==
ppv
)
return
E_POINTER
;
if
(
NULL
==
ppv
)
return
E_POINTER
;
if
(
(
IID_IUnknown
==
riid
)
&&
(
IID_IConnectionPoint
==
riid
)
)
{
||
(
IID_IConnectionPoint
==
riid
)
)
{
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
return
NOERROR
;
...
...
@@ -95,9 +97,11 @@ public:
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
if
(
(
NULL
!=
ppv
)
&&
(
IID_IUnknown
==
riid
)
&&
(
IID_IConnectionPointContainer
==
riid
)
)
{
if
(
NULL
==
ppv
)
return
E_POINTER
;
if
(
(
IID_IUnknown
==
riid
)
||
(
IID_IConnectionPointContainer
==
riid
)
)
{
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
return
NOERROR
;
...
...
activex/dataobject.h
View file @
054049cf
...
...
@@ -37,9 +37,10 @@ public:
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
if
(
(
NULL
!=
ppv
)
&&
(
IID_IUnknown
==
riid
)
&&
(
IID_IDataObject
==
riid
)
)
{
if
(
NULL
==
ppv
)
return
E_POINTER
;
if
(
(
IID_IUnknown
==
riid
)
||
(
IID_IDataObject
==
riid
)
)
{
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
return
NOERROR
;
...
...
activex/objectsafety.h
View file @
054049cf
...
...
@@ -67,9 +67,10 @@ public:
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
if
(
(
NULL
!=
ppv
)
&&
(
IID_IUnknown
==
riid
)
&&
(
IID_IObjectSafety
==
riid
)
)
if
(
NULL
==
ppv
)
return
E_POINTER
;
if
(
(
IID_IUnknown
==
riid
)
||
(
IID_IObjectSafety
==
riid
)
)
{
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
...
...
activex/olecontrol.h
View file @
054049cf
...
...
@@ -36,9 +36,10 @@ public:
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
if
(
(
NULL
!=
ppv
)
&&
(
IID_IUnknown
==
riid
)
&&
(
IID_IOleControl
==
riid
)
)
if
(
NULL
==
ppv
)
return
E_POINTER
;
if
(
(
IID_IUnknown
==
riid
)
||
(
IID_IOleControl
==
riid
)
)
{
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
...
...
activex/oleinplaceactiveobject.h
View file @
054049cf
...
...
@@ -36,10 +36,11 @@ public:
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
if
(
(
NULL
!=
ppv
)
&&
(
IID_IUnknown
==
riid
)
&&
(
IID_IOleWindow
==
riid
)
&&
(
IID_IOleInPlaceActiveObject
==
riid
)
)
if
(
NULL
==
ppv
)
return
E_POINTER
;
if
(
(
IID_IUnknown
==
riid
)
||
(
IID_IOleWindow
==
riid
)
||
(
IID_IOleInPlaceActiveObject
==
riid
)
)
{
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
...
...
activex/oleinplaceobject.h
View file @
054049cf
...
...
@@ -34,10 +34,11 @@ public:
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
if
(
(
NULL
!=
ppv
)
&&
(
IID_IUnknown
==
riid
)
&&
(
IID_IOleWindow
==
riid
)
&&
(
IID_IOleInPlaceObject
==
riid
)
)
if
(
NULL
==
ppv
)
return
E_POINTER
;
if
(
(
IID_IUnknown
==
riid
)
||
(
IID_IOleWindow
==
riid
)
||
(
IID_IOleInPlaceObject
==
riid
)
)
{
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
...
...
activex/oleobject.h
View file @
054049cf
...
...
@@ -34,9 +34,10 @@ public:
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
if
(
(
NULL
!=
ppv
)
&&
(
IID_IUnknown
==
riid
)
&&
(
IID_IOleObject
==
riid
)
)
if
(
NULL
==
ppv
)
return
E_POINTER
;
if
(
(
IID_IUnknown
==
riid
)
||
(
IID_IOleObject
==
riid
)
)
{
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
...
...
activex/persistpropbag.h
View file @
054049cf
...
...
@@ -36,10 +36,12 @@ public:
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
if
(
(
NULL
!=
ppv
)
&&
(
IID_IUnknown
==
riid
)
&&
(
IID_IPersist
==
riid
)
&&
(
IID_IPersistPropertyBag
==
riid
)
)
{
if
(
NULL
==
ppv
)
return
E_POINTER
;
if
(
(
IID_IUnknown
==
riid
)
||
(
IID_IPersist
==
riid
)
||
(
IID_IPersistPropertyBag
==
riid
)
)
{
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
return
NOERROR
;
...
...
activex/persiststorage.h
View file @
054049cf
...
...
@@ -36,10 +36,12 @@ public:
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
if
(
(
NULL
!=
ppv
)
&&
(
IID_IUnknown
==
riid
)
&&
(
IID_IPersist
==
riid
)
&&
(
IID_IPersistStorage
==
riid
)
)
{
if
(
NULL
==
ppv
)
return
E_POINTER
;
if
(
(
IID_IUnknown
==
riid
)
||
(
IID_IPersist
==
riid
)
||
(
IID_IPersistStorage
==
riid
)
)
{
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
return
NOERROR
;
...
...
activex/persiststreaminit.cpp
View file @
054049cf
...
...
@@ -213,7 +213,7 @@ public:
if
(
NULL
==
ppv
)
return
E_POINTER
;
if
(
(
IID_IUnknown
==
riid
)
&&
(
IID_IPropertyBag
==
riid
)
)
||
(
IID_IPropertyBag
==
riid
)
)
{
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
...
...
activex/persiststreaminit.h
View file @
054049cf
...
...
@@ -36,10 +36,12 @@ public:
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
if
(
(
NULL
!=
ppv
)
&&
(
IID_IUnknown
==
riid
)
&&
(
IID_IPersist
==
riid
)
&&
(
IID_IPersistStreamInit
==
riid
)
)
{
if
(
NULL
==
ppv
)
return
E_POINTER
;
if
(
(
IID_IUnknown
==
riid
)
||
(
IID_IPersist
==
riid
)
||
(
IID_IPersistStreamInit
==
riid
)
)
{
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
return
NOERROR
;
...
...
activex/plugin.cpp
View file @
054049cf
...
...
@@ -180,7 +180,8 @@ STDMETHODIMP VLCPluginClass::QueryInterface(REFIID riid, void **ppv)
if
(
NULL
==
ppv
)
return
E_INVALIDARG
;
if
(
(
IID_IUnknown
==
riid
)
||
(
IID_IClassFactory
==
riid
)
)
if
(
(
IID_IUnknown
==
riid
)
||
(
IID_IClassFactory
==
riid
)
)
{
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
...
...
activex/provideclassinfo.h
View file @
054049cf
...
...
@@ -36,10 +36,12 @@ public:
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
if
(
(
NULL
!=
ppv
)
&&
(
IID_IUnknown
==
riid
)
&&
(
IID_IProvideClassInfo
==
riid
)
&&
(
IID_IProvideClassInfo2
==
riid
)
)
{
if
(
NULL
==
ppv
)
return
E_POINTER
;
if
(
(
IID_IUnknown
==
riid
)
||
(
IID_IProvideClassInfo
==
riid
)
||
(
IID_IProvideClassInfo2
==
riid
)
)
{
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
return
NOERROR
;
...
...
activex/utils.h
View file @
054049cf
...
...
@@ -108,13 +108,16 @@ VLCEnum<T>& VLCEnum<T>::operator=(const VLCEnum<T> &e)
template
<
class
T
>
STDMETHODIMP
VLCEnum
<
T
>::
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
if
(
NULL
==
ppv
)
return
E_POINTER
;
if
(
NULL
==
ppv
)
return
E_POINTER
;
if
(
(
IID_IUnknown
==
riid
)
&&
(
_riid
==
riid
)
)
{
||
(
_riid
==
riid
)
)
{
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
return
NOERROR
;
}
// standalone object
return
E_NOINTERFACE
;
};
...
...
activex/viewobject.h
View file @
054049cf
...
...
@@ -37,11 +37,12 @@ public:
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
if
(
(
NULL
!=
ppv
)
&&
(
IID_IUnknown
==
riid
)
&&
(
IID_IPersist
==
riid
)
&&
(
IID_IViewObject
==
riid
)
&&
(
IID_IViewObject2
==
riid
)
)
{
if
(
NULL
==
ppv
)
return
E_POINTER
;
if
(
(
IID_IUnknown
==
riid
)
||
(
IID_IViewObject
==
riid
)
||
(
IID_IViewObject2
==
riid
)
)
{
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
return
NOERROR
;
...
...
activex/vlccontrol.h
View file @
054049cf
...
...
@@ -37,10 +37,12 @@ public:
// IUnknown methods
STDMETHODIMP
QueryInterface
(
REFIID
riid
,
void
**
ppv
)
{
if
(
(
NULL
!=
ppv
)
&&
(
IID_IUnknown
==
riid
)
&&
(
IID_IDispatch
==
riid
)
&&
(
IID_IVLCControl
==
riid
)
)
{
if
(
NULL
==
ppv
)
return
E_POINTER
;
if
(
(
IID_IUnknown
==
riid
)
||
(
IID_IDispatch
==
riid
)
||
(
IID_IVLCControl
==
riid
)
)
{
AddRef
();
*
ppv
=
reinterpret_cast
<
LPVOID
>
(
this
);
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