Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b8ef455d
Commit
b8ef455d
authored
Dec 04, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avifil32: Use an iface instead of an vtbl pointer in IClassFactoryImpl.
parent
a9253148
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
factory.c
dlls/avifil32/factory.c
+11
-6
No files found.
dlls/avifil32/factory.c
View file @
b8ef455d
...
...
@@ -57,12 +57,17 @@ static const IClassFactoryVtbl iclassfact = {
typedef
struct
{
/* IUnknown fields */
const
IClassFactoryVtbl
*
lpVtbl
;
IClassFactory
IClassFactory_iface
;
DWORD
dwRef
;
CLSID
clsid
;
}
IClassFactoryImpl
;
static
inline
IClassFactoryImpl
*
impl_from_IClassFactory
(
IClassFactory
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IClassFactoryImpl
,
IClassFactory_iface
);
}
static
HRESULT
AVIFILE_CreateClassFactory
(
const
CLSID
*
pclsid
,
const
IID
*
riid
,
LPVOID
*
ppv
)
{
...
...
@@ -75,11 +80,11 @@ static HRESULT AVIFILE_CreateClassFactory(const CLSID *pclsid, const IID *riid,
if
(
pClassFactory
==
NULL
)
return
E_OUTOFMEMORY
;
pClassFactory
->
lpVtbl
=
&
iclassfact
;
pClassFactory
->
IClassFactory_iface
.
lpVtbl
=
&
iclassfact
;
pClassFactory
->
dwRef
=
0
;
pClassFactory
->
clsid
=
*
pclsid
;
hr
=
IClassFactory_QueryInterface
(
(
IClassFactory
*
)
pClassFactory
,
riid
,
ppv
);
hr
=
IClassFactory_QueryInterface
(
&
pClassFactory
->
IClassFactory_iface
,
riid
,
ppv
);
if
(
FAILED
(
hr
))
{
HeapFree
(
GetProcessHeap
(),
0
,
pClassFactory
);
*
ppv
=
NULL
;
...
...
@@ -105,7 +110,7 @@ static HRESULT WINAPI IClassFactory_fnQueryInterface(LPCLASSFACTORY iface,
static
ULONG
WINAPI
IClassFactory_fnAddRef
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
IClassFactoryImpl
*
This
=
impl_from_IClassFactory
(
iface
)
;
TRACE
(
"(%p)
\n
"
,
iface
);
...
...
@@ -114,7 +119,7 @@ static ULONG WINAPI IClassFactory_fnAddRef(LPCLASSFACTORY iface)
static
ULONG
WINAPI
IClassFactory_fnRelease
(
LPCLASSFACTORY
iface
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
IClassFactoryImpl
*
This
=
impl_from_IClassFactory
(
iface
)
;
TRACE
(
"(%p)
\n
"
,
iface
);
if
((
--
(
This
->
dwRef
))
>
0
)
...
...
@@ -129,7 +134,7 @@ static HRESULT WINAPI IClassFactory_fnCreateInstance(LPCLASSFACTORY iface,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
IClassFactoryImpl
*
This
=
impl_from_IClassFactory
(
iface
)
;
TRACE
(
"(%p,%p,%s,%p)
\n
"
,
iface
,
pOuter
,
debugstr_guid
(
riid
),
ppobj
);
...
...
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