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
1b94450f
Commit
1b94450f
authored
Dec 15, 2009
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Dec 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Remove refcounting in classfactory.
parent
b80fe361
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
16 deletions
+9
-16
dsound_main.c
dlls/dsound/dsound_main.c
+9
-16
No files found.
dlls/dsound/dsound_main.c
View file @
1b94450f
...
@@ -497,7 +497,6 @@ typedef HRESULT (*FnCreateInstance)(REFIID riid, LPVOID *ppobj);
...
@@ -497,7 +497,6 @@ typedef HRESULT (*FnCreateInstance)(REFIID riid, LPVOID *ppobj);
typedef
struct
{
typedef
struct
{
const
IClassFactoryVtbl
*
lpVtbl
;
const
IClassFactoryVtbl
*
lpVtbl
;
LONG
ref
;
REFCLSID
rclsid
;
REFCLSID
rclsid
;
FnCreateInstance
pfnCreateInstance
;
FnCreateInstance
pfnCreateInstance
;
}
IClassFactoryImpl
;
}
IClassFactoryImpl
;
...
@@ -522,19 +521,13 @@ DSCF_QueryInterface(LPCLASSFACTORY iface, REFIID riid, LPVOID *ppobj)
...
@@ -522,19 +521,13 @@ DSCF_QueryInterface(LPCLASSFACTORY iface, REFIID riid, LPVOID *ppobj)
static
ULONG
WINAPI
DSCF_AddRef
(
LPCLASSFACTORY
iface
)
static
ULONG
WINAPI
DSCF_AddRef
(
LPCLASSFACTORY
iface
)
{
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
return
2
;
ULONG
ref
=
InterlockedIncrement
(
&
(
This
->
ref
));
TRACE
(
"(%p) ref was %d
\n
"
,
This
,
ref
-
1
);
return
ref
;
}
}
static
ULONG
WINAPI
DSCF_Release
(
LPCLASSFACTORY
iface
)
static
ULONG
WINAPI
DSCF_Release
(
LPCLASSFACTORY
iface
)
{
{
IClassFactoryImpl
*
This
=
(
IClassFactoryImpl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
(
This
->
ref
));
TRACE
(
"(%p) ref was %d
\n
"
,
This
,
ref
+
1
);
/* static class, won't be freed */
/* static class, won't be freed */
return
ref
;
return
1
;
}
}
static
HRESULT
WINAPI
DSCF_CreateInstance
(
static
HRESULT
WINAPI
DSCF_CreateInstance
(
...
@@ -573,13 +566,13 @@ static const IClassFactoryVtbl DSCF_Vtbl = {
...
@@ -573,13 +566,13 @@ static const IClassFactoryVtbl DSCF_Vtbl = {
};
};
static
IClassFactoryImpl
DSOUND_CF
[]
=
{
static
IClassFactoryImpl
DSOUND_CF
[]
=
{
{
&
DSCF_Vtbl
,
1
,
&
CLSID_DirectSound
,
(
FnCreateInstance
)
DSOUND_Create
},
{
&
DSCF_Vtbl
,
&
CLSID_DirectSound
,
(
FnCreateInstance
)
DSOUND_Create
},
{
&
DSCF_Vtbl
,
1
,
&
CLSID_DirectSound8
,
(
FnCreateInstance
)
DSOUND_Create8
},
{
&
DSCF_Vtbl
,
&
CLSID_DirectSound8
,
(
FnCreateInstance
)
DSOUND_Create8
},
{
&
DSCF_Vtbl
,
1
,
&
CLSID_DirectSoundCapture
,
(
FnCreateInstance
)
DSOUND_CaptureCreate
},
{
&
DSCF_Vtbl
,
&
CLSID_DirectSoundCapture
,
(
FnCreateInstance
)
DSOUND_CaptureCreate
},
{
&
DSCF_Vtbl
,
1
,
&
CLSID_DirectSoundCapture8
,
(
FnCreateInstance
)
DSOUND_CaptureCreate8
},
{
&
DSCF_Vtbl
,
&
CLSID_DirectSoundCapture8
,
(
FnCreateInstance
)
DSOUND_CaptureCreate8
},
{
&
DSCF_Vtbl
,
1
,
&
CLSID_DirectSoundFullDuplex
,
(
FnCreateInstance
)
DSOUND_FullDuplexCreate
},
{
&
DSCF_Vtbl
,
&
CLSID_DirectSoundFullDuplex
,
(
FnCreateInstance
)
DSOUND_FullDuplexCreate
},
{
&
DSCF_Vtbl
,
1
,
&
CLSID_DirectSoundPrivate
,
(
FnCreateInstance
)
IKsPrivatePropertySetImpl_Create
},
{
&
DSCF_Vtbl
,
&
CLSID_DirectSoundPrivate
,
(
FnCreateInstance
)
IKsPrivatePropertySetImpl_Create
},
{
NULL
,
0
,
NULL
,
NULL
}
{
NULL
,
NULL
,
NULL
}
};
};
/*******************************************************************************
/*******************************************************************************
...
...
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