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
3501cb7b
Commit
3501cb7b
authored
Jul 02, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: COM cleanup for IAMFilterMiscFlags in NullRenderer.
parent
7fa17be7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
12 deletions
+18
-12
nullrenderer.c
dlls/quartz/nullrenderer.c
+18
-12
No files found.
dlls/quartz/nullrenderer.c
View file @
3501cb7b
...
...
@@ -50,7 +50,7 @@ typedef struct NullRendererImpl
BaseRenderer
renderer
;
const
IUnknownVtbl
*
IInner_vtbl
;
const
IAMFilterMiscFlagsVtbl
*
IAMFilterMiscFlags_vtbl
;
IAMFilterMiscFlags
IAMFilterMiscFlags_iface
;
IUnknown
*
pUnkOuter
;
BOOL
bUnkOuterValid
;
...
...
@@ -104,7 +104,7 @@ HRESULT NullRenderer_create(IUnknown * pUnkOuter, LPVOID * ppv)
pNullRenderer
->
bUnkOuterValid
=
FALSE
;
pNullRenderer
->
bAggregatable
=
FALSE
;
pNullRenderer
->
IInner_vtbl
=
&
IInner_VTable
;
pNullRenderer
->
IAMFilterMiscFlags_
v
tbl
=
&
IAMFilterMiscFlags_Vtbl
;
pNullRenderer
->
IAMFilterMiscFlags_
iface
.
lpV
tbl
=
&
IAMFilterMiscFlags_Vtbl
;
hr
=
BaseRenderer_Init
(
&
pNullRenderer
->
renderer
,
&
NullRenderer_Vtbl
,
pUnkOuter
,
&
CLSID_NullRenderer
,
(
DWORD_PTR
)(
__FILE__
": NullRendererImpl.csFilter"
),
&
RendererFuncTable
);
...
...
@@ -132,7 +132,7 @@ static HRESULT WINAPI NullRendererInner_QueryInterface(IUnknown * iface, REFIID
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
))
*
ppv
=
&
This
->
IInner_vtbl
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IAMFilterMiscFlags
))
*
ppv
=
&
This
->
IAMFilterMiscFlags_
vtbl
;
*
ppv
=
&
This
->
IAMFilterMiscFlags_
iface
;
else
{
HRESULT
hr
;
...
...
@@ -248,26 +248,32 @@ static const IBaseFilterVtbl NullRenderer_Vtbl =
BaseFilterImpl_QueryVendorInfo
};
static
NullRendererImpl
*
from_IAMFilterMiscFlags
(
IAMFilterMiscFlags
*
iface
)
{
return
(
NullRendererImpl
*
)((
char
*
)
iface
-
offsetof
(
NullRendererImpl
,
IAMFilterMiscFlags_vtbl
));
static
NullRendererImpl
*
impl_from_IAMFilterMiscFlags
(
IAMFilterMiscFlags
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
NullRendererImpl
,
IAMFilterMiscFlags_iface
);
}
static
HRESULT
WINAPI
AMFilterMiscFlags_QueryInterface
(
IAMFilterMiscFlags
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
NullRendererImpl
*
This
=
from_IAMFilterMiscFlags
(
iface
);
static
HRESULT
WINAPI
AMFilterMiscFlags_QueryInterface
(
IAMFilterMiscFlags
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
NullRendererImpl
*
This
=
impl_from_IAMFilterMiscFlags
(
iface
);
return
IUnknown_QueryInterface
((
IUnknown
*
)
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
AMFilterMiscFlags_AddRef
(
IAMFilterMiscFlags
*
iface
)
{
NullRendererImpl
*
This
=
from_IAMFilterMiscFlags
(
iface
);
static
ULONG
WINAPI
AMFilterMiscFlags_AddRef
(
IAMFilterMiscFlags
*
iface
)
{
NullRendererImpl
*
This
=
impl_from_IAMFilterMiscFlags
(
iface
);
return
IUnknown_AddRef
((
IUnknown
*
)
This
);
}
static
ULONG
WINAPI
AMFilterMiscFlags_Release
(
IAMFilterMiscFlags
*
iface
)
{
NullRendererImpl
*
This
=
from_IAMFilterMiscFlags
(
iface
);
static
ULONG
WINAPI
AMFilterMiscFlags_Release
(
IAMFilterMiscFlags
*
iface
)
{
NullRendererImpl
*
This
=
impl_from_IAMFilterMiscFlags
(
iface
);
return
IUnknown_Release
((
IUnknown
*
)
This
);
}
static
ULONG
WINAPI
AMFilterMiscFlags_GetMiscFlags
(
IAMFilterMiscFlags
*
iface
)
{
static
ULONG
WINAPI
AMFilterMiscFlags_GetMiscFlags
(
IAMFilterMiscFlags
*
iface
)
{
return
AM_FILTER_MISC_FLAGS_IS_RENDERER
;
}
...
...
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