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
67cb8da5
Commit
67cb8da5
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: Move NullRenderer_create() to avoid forward declarations.
parent
4e1302c2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
37 deletions
+33
-37
nullrenderer.c
dlls/quartz/nullrenderer.c
+33
-37
No files found.
dlls/quartz/nullrenderer.c
View file @
67cb8da5
...
...
@@ -41,10 +41,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
quartz
);
static
const
IBaseFilterVtbl
NullRenderer_Vtbl
;
static
const
IUnknownVtbl
IInner_VTable
;
static
const
IAMFilterMiscFlagsVtbl
IAMFilterMiscFlags_Vtbl
;
typedef
struct
NullRendererImpl
{
BaseRenderer
renderer
;
...
...
@@ -86,39 +82,6 @@ static const BaseRendererFuncTable RendererFuncTable = {
NULL
,
};
HRESULT
NullRenderer_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppv
)
{
HRESULT
hr
;
NullRendererImpl
*
pNullRenderer
;
TRACE
(
"(%p, %p)
\n
"
,
pUnkOuter
,
ppv
);
*
ppv
=
NULL
;
pNullRenderer
=
CoTaskMemAlloc
(
sizeof
(
NullRendererImpl
));
pNullRenderer
->
IUnknown_inner
.
lpVtbl
=
&
IInner_VTable
;
pNullRenderer
->
IAMFilterMiscFlags_iface
.
lpVtbl
=
&
IAMFilterMiscFlags_Vtbl
;
if
(
pUnkOuter
)
pNullRenderer
->
outer_unk
=
pUnkOuter
;
else
pNullRenderer
->
outer_unk
=
&
pNullRenderer
->
IUnknown_inner
;
hr
=
BaseRenderer_Init
(
&
pNullRenderer
->
renderer
,
&
NullRenderer_Vtbl
,
pUnkOuter
,
&
CLSID_NullRenderer
,
(
DWORD_PTR
)(
__FILE__
": NullRendererImpl.csFilter"
),
&
RendererFuncTable
);
if
(
FAILED
(
hr
))
{
BaseRendererImpl_Release
(
&
pNullRenderer
->
renderer
.
filter
.
IBaseFilter_iface
);
CoTaskMemFree
(
pNullRenderer
);
}
else
*
ppv
=
&
pNullRenderer
->
IUnknown_inner
;
return
S_OK
;
}
static
inline
NullRendererImpl
*
impl_from_IUnknown
(
IUnknown
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
NullRendererImpl
,
IUnknown_inner
);
...
...
@@ -260,3 +223,36 @@ static const IAMFilterMiscFlagsVtbl IAMFilterMiscFlags_Vtbl = {
AMFilterMiscFlags_Release
,
AMFilterMiscFlags_GetMiscFlags
};
HRESULT
NullRenderer_create
(
IUnknown
*
pUnkOuter
,
void
**
ppv
)
{
HRESULT
hr
;
NullRendererImpl
*
pNullRenderer
;
TRACE
(
"(%p, %p)
\n
"
,
pUnkOuter
,
ppv
);
*
ppv
=
NULL
;
pNullRenderer
=
CoTaskMemAlloc
(
sizeof
(
NullRendererImpl
));
pNullRenderer
->
IUnknown_inner
.
lpVtbl
=
&
IInner_VTable
;
pNullRenderer
->
IAMFilterMiscFlags_iface
.
lpVtbl
=
&
IAMFilterMiscFlags_Vtbl
;
if
(
pUnkOuter
)
pNullRenderer
->
outer_unk
=
pUnkOuter
;
else
pNullRenderer
->
outer_unk
=
&
pNullRenderer
->
IUnknown_inner
;
hr
=
BaseRenderer_Init
(
&
pNullRenderer
->
renderer
,
&
NullRenderer_Vtbl
,
pUnkOuter
,
&
CLSID_NullRenderer
,
(
DWORD_PTR
)(
__FILE__
": NullRendererImpl.csFilter"
),
&
RendererFuncTable
);
if
(
FAILED
(
hr
))
{
BaseRendererImpl_Release
(
&
pNullRenderer
->
renderer
.
filter
.
IBaseFilter_iface
);
CoTaskMemFree
(
pNullRenderer
);
}
else
*
ppv
=
&
pNullRenderer
->
IUnknown_inner
;
return
S_OK
;
}
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