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
7fa17be7
Commit
7fa17be7
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 the FilterMapper_create to avoid forward declarations.
parent
d2d3a9c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
49 deletions
+44
-49
filtermapper.c
dlls/quartz/filtermapper.c
+44
-49
No files found.
dlls/quartz/filtermapper.c
View file @
7fa17be7
...
...
@@ -55,11 +55,6 @@ typedef struct FilterMapper3Impl
LONG
ref
;
}
FilterMapper3Impl
;
static
const
IUnknownVtbl
IInner_VTable
;
static
const
IFilterMapper3Vtbl
fm3vtbl
;
static
const
IFilterMapperVtbl
fmvtbl
;
static
const
IAMFilterDataVtbl
AMFilterDataVtbl
;
static
inline
FilterMapper3Impl
*
impl_from_IFilterMapper3
(
IFilterMapper3
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
FilterMapper3Impl
,
IFilterMapper3_iface
);
...
...
@@ -180,50 +175,6 @@ static void delete_vector(struct Vector * v)
v
->
capacity
=
0
;
}
HRESULT
FilterMapper2_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
{
FilterMapper3Impl
*
pFM2impl
;
TRACE
(
"(%p, %p)
\n
"
,
pUnkOuter
,
ppObj
);
pFM2impl
=
CoTaskMemAlloc
(
sizeof
(
*
pFM2impl
));
if
(
!
pFM2impl
)
return
E_OUTOFMEMORY
;
pFM2impl
->
IUnknown_inner
.
lpVtbl
=
&
IInner_VTable
;
pFM2impl
->
IFilterMapper3_iface
.
lpVtbl
=
&
fm3vtbl
;
pFM2impl
->
IFilterMapper_iface
.
lpVtbl
=
&
fmvtbl
;
pFM2impl
->
IAMFilterData_iface
.
lpVtbl
=
&
AMFilterDataVtbl
;
pFM2impl
->
ref
=
1
;
if
(
pUnkOuter
)
pFM2impl
->
outer_unk
=
pUnkOuter
;
else
pFM2impl
->
outer_unk
=
&
pFM2impl
->
IUnknown_inner
;
*
ppObj
=
&
pFM2impl
->
IUnknown_inner
;
TRACE
(
"-- created at %p
\n
"
,
pFM2impl
);
return
S_OK
;
}
HRESULT
FilterMapper_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
{
FilterMapper3Impl
*
pFM2impl
;
HRESULT
hr
;
TRACE
(
"(%p, %p)
\n
"
,
pUnkOuter
,
ppObj
);
hr
=
FilterMapper2_create
(
pUnkOuter
,
(
LPVOID
*
)
&
pFM2impl
);
if
(
FAILED
(
hr
))
return
hr
;
*
ppObj
=
&
pFM2impl
->
IFilterMapper_iface
;
return
hr
;
}
/*** IUnknown (inner) methods ***/
static
HRESULT
WINAPI
Inner_QueryInterface
(
IUnknown
*
iface
,
REFIID
riid
,
void
**
ppv
)
...
...
@@ -1737,3 +1688,47 @@ static const IAMFilterDataVtbl AMFilterDataVtbl = {
AMFilterData_ParseFilterData
,
AMFilterData_CreateFilterData
};
HRESULT
FilterMapper2_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
{
FilterMapper3Impl
*
pFM2impl
;
TRACE
(
"(%p, %p)
\n
"
,
pUnkOuter
,
ppObj
);
pFM2impl
=
CoTaskMemAlloc
(
sizeof
(
*
pFM2impl
));
if
(
!
pFM2impl
)
return
E_OUTOFMEMORY
;
pFM2impl
->
IUnknown_inner
.
lpVtbl
=
&
IInner_VTable
;
pFM2impl
->
IFilterMapper3_iface
.
lpVtbl
=
&
fm3vtbl
;
pFM2impl
->
IFilterMapper_iface
.
lpVtbl
=
&
fmvtbl
;
pFM2impl
->
IAMFilterData_iface
.
lpVtbl
=
&
AMFilterDataVtbl
;
pFM2impl
->
ref
=
1
;
if
(
pUnkOuter
)
pFM2impl
->
outer_unk
=
pUnkOuter
;
else
pFM2impl
->
outer_unk
=
&
pFM2impl
->
IUnknown_inner
;
*
ppObj
=
&
pFM2impl
->
IUnknown_inner
;
TRACE
(
"-- created at %p
\n
"
,
pFM2impl
);
return
S_OK
;
}
HRESULT
FilterMapper_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
{
FilterMapper3Impl
*
pFM2impl
;
HRESULT
hr
;
TRACE
(
"(%p, %p)
\n
"
,
pUnkOuter
,
ppObj
);
hr
=
FilterMapper2_create
(
pUnkOuter
,
(
LPVOID
*
)
&
pFM2impl
);
if
(
FAILED
(
hr
))
return
hr
;
*
ppObj
=
&
pFM2impl
->
IFilterMapper_iface
;
return
hr
;
}
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