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
a9c715fd
Commit
a9c715fd
authored
Mar 29, 2013
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Mar 29, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dplayx: Fix QueryInterface, AddRef and Release methods for IClassFactory.
parent
fa4950c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
dpclassfactory.c
dlls/dplayx/dpclassfactory.c
+16
-15
No files found.
dlls/dplayx/dpclassfactory.c
View file @
a9c715fd
...
...
@@ -42,9 +42,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(dplay);
typedef
struct
{
/* IUnknown fields */
IClassFactory
IClassFactory_iface
;
LONG
ref
;
}
IClassFactoryImpl
;
static
inline
IClassFactoryImpl
*
impl_from_IClassFactory
(
IClassFactory
*
iface
)
...
...
@@ -53,26 +51,30 @@ static inline IClassFactoryImpl *impl_from_IClassFactory(IClassFactory *iface)
}
static
HRESULT
WINAPI
IClassFactoryImpl_QueryInterface
(
IClassFactory
*
iface
,
REFIID
riid
,
void
**
pp
obj
)
void
**
pp
v
)
{
IClassFactoryImpl
*
This
=
impl_from_IClassFactory
(
iface
);
TRACE
(
"(%p)->(%s %p)
\n
"
,
iface
,
debugstr_guid
(
riid
),
ppv
);
FIXME
(
"(%p)->(%s,%p),stub!
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
)
||
IsEqualGUID
(
&
IID_IClassFactory
,
riid
))
{
*
ppv
=
iface
;
IClassFactory_AddRef
(
iface
);
return
S_OK
;
}
return
E_NOINTERFACE
;
*
ppv
=
NULL
;
WARN
(
"no interface for %s
\n
"
,
debugstr_guid
(
riid
));
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
IClassFactoryImpl_AddRef
(
IClassFactory
*
iface
)
{
IClassFactoryImpl
*
This
=
impl_from_IClassFactory
(
iface
);
return
InterlockedIncrement
(
&
This
->
ref
);
return
2
;
/* non-heap based object */
}
static
ULONG
WINAPI
IClassFactoryImpl_Release
(
IClassFactory
*
iface
)
{
IClassFactoryImpl
*
This
=
impl_from_IClassFactory
(
iface
);
/* static class (reference starts @ 1), won't ever be freed */
return
InterlockedDecrement
(
&
This
->
ref
);
return
1
;
/* non-heap based object */
}
static
HRESULT
WINAPI
IClassFactoryImpl_CreateInstance
(
IClassFactory
*
iface
,
IUnknown
*
pOuter
,
...
...
@@ -96,9 +98,8 @@ static HRESULT WINAPI IClassFactoryImpl_CreateInstance(IClassFactory *iface, IUn
static
HRESULT
WINAPI
IClassFactoryImpl_LockServer
(
IClassFactory
*
iface
,
BOOL
dolock
)
{
IClassFactoryImpl
*
This
=
impl_from_IClassFactory
(
iface
);
FIXME
(
"(%p)->(%d),stub!
\n
"
,
This
,
dolock
);
return
S_OK
;
FIXME
(
"(%p)->(%d),stub!
\n
"
,
iface
,
dolock
);
return
S_OK
;
}
static
const
IClassFactoryVtbl
DP_and_DPL_Vtbl
=
{
...
...
@@ -109,7 +110,7 @@ static const IClassFactoryVtbl DP_and_DPL_Vtbl = {
IClassFactoryImpl_LockServer
};
static
IClassFactoryImpl
DP_and_DPL_CF
=
{{
&
DP_and_DPL_Vtbl
}
,
1
};
static
IClassFactoryImpl
DP_and_DPL_CF
=
{{
&
DP_and_DPL_Vtbl
}};
/*******************************************************************************
...
...
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