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
348392fe
Commit
348392fe
authored
Jul 28, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dswave: COM cleanup for the IClassFactory iface.
parent
7939090f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
dswave_main.c
dlls/dswave/dswave_main.c
+14
-8
No files found.
dlls/dswave/dswave_main.c
View file @
348392fe
...
...
@@ -31,13 +31,14 @@ static HINSTANCE instance;
LONG
DSWAVE_refCount
=
0
;
typedef
struct
{
const
IClassFactoryVtbl
*
lpVtbl
;
IClassFactory
IClassFactory_iface
;
}
IClassFactoryImpl
;
/******************************************************************
* DirectMusicWave ClassFactory
*/
static
HRESULT
WINAPI
WaveCF_QueryInterface
(
LPCLASSFACTORY
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
WaveCF_QueryInterface
(
IClassFactory
*
iface
,
REFIID
riid
,
void
**
ppobj
)
{
FIXME
(
"- no interface
\n\t
IID:
\t
%s
\n
"
,
debugstr_guid
(
riid
));
if
(
ppobj
==
NULL
)
return
E_POINTER
;
...
...
@@ -45,25 +46,30 @@ static HRESULT WINAPI WaveCF_QueryInterface(LPCLASSFACTORY iface,REFIID riid,LPV
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
WaveCF_AddRef
(
LPCLASSFACTORY
iface
)
{
static
ULONG
WINAPI
WaveCF_AddRef
(
IClassFactory
*
iface
)
{
DSWAVE_LockModule
();
return
2
;
/* non-heap based object */
}
static
ULONG
WINAPI
WaveCF_Release
(
LPCLASSFACTORY
iface
)
{
static
ULONG
WINAPI
WaveCF_Release
(
IClassFactory
*
iface
)
{
DSWAVE_UnlockModule
();
return
1
;
/* non-heap based object */
}
static
HRESULT
WINAPI
WaveCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
WaveCF_CreateInstance
(
IClassFactory
*
iface
,
IUnknown
*
pOuter
,
REFIID
riid
,
void
**
ppobj
)
{
TRACE
(
"(%p, %s, %p)
\n
"
,
pOuter
,
debugstr_dmguid
(
riid
),
ppobj
);
return
DMUSIC_CreateDirectMusicWaveImpl
(
riid
,
ppobj
,
pOuter
);
}
static
HRESULT
WINAPI
WaveCF_LockServer
(
LPCLASSFACTORY
iface
,
BOOL
dolock
)
{
static
HRESULT
WINAPI
WaveCF_LockServer
(
IClassFactory
*
iface
,
BOOL
dolock
)
{
TRACE
(
"(%d)
\n
"
,
dolock
);
if
(
dolock
)
...
...
@@ -82,7 +88,7 @@ static const IClassFactoryVtbl WaveCF_Vtbl = {
WaveCF_LockServer
};
static
IClassFactoryImpl
Wave_CF
=
{
&
WaveCF_Vtbl
};
static
IClassFactoryImpl
Wave_CF
=
{
{
&
WaveCF_Vtbl
}
};
/******************************************************************
* DllMain
...
...
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