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
1555aebf
Commit
1555aebf
authored
Aug 24, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 24, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Cleanup IKsPrivatePropertySetImpl_Create().
parent
054d930b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
13 deletions
+14
-13
dsound_main.c
dlls/dsound/dsound_main.c
+1
-1
dsound_private.h
dlls/dsound/dsound_private.h
+1
-1
propset.c
dlls/dsound/propset.c
+12
-11
No files found.
dlls/dsound/dsound_main.c
View file @
1555aebf
...
...
@@ -724,7 +724,7 @@ static IClassFactoryImpl DSOUND_CF[] = {
{
{
&
DSCF_Vtbl
},
&
CLSID_DirectSoundCapture
,
DSOUND_CaptureCreate
},
{
{
&
DSCF_Vtbl
},
&
CLSID_DirectSoundCapture8
,
DSOUND_CaptureCreate8
},
{
{
&
DSCF_Vtbl
},
&
CLSID_DirectSoundFullDuplex
,
DSOUND_FullDuplexCreate
},
{
{
&
DSCF_Vtbl
},
&
CLSID_DirectSoundPrivate
,
(
FnCreateInstance
)
IKsPrivatePropertySetImpl_Create
},
{
{
&
DSCF_Vtbl
},
&
CLSID_DirectSoundPrivate
,
IKsPrivatePropertySetImpl_Create
},
{
{
NULL
},
NULL
,
NULL
}
};
...
...
dlls/dsound/dsound_private.h
View file @
1555aebf
...
...
@@ -254,7 +254,7 @@ struct IDirectSoundCaptureBufferImpl
int
nrofnotifies
;
};
HRESULT
IKsPrivatePropertySetImpl_Create
(
REFIID
riid
,
IKsPropertySet
**
piks
)
DECLSPEC_HIDDEN
;
HRESULT
IKsPrivatePropertySetImpl_Create
(
REFIID
riid
,
void
**
ppv
)
DECLSPEC_HIDDEN
;
/*******************************************************************************
*/
...
...
dlls/dsound/propset.c
View file @
1555aebf
...
...
@@ -619,23 +619,24 @@ static const IKsPropertySetVtbl ikspvt = {
IKsPrivatePropertySetImpl_QuerySupport
};
HRESULT
IKsPrivatePropertySetImpl_Create
(
REFIID
riid
,
IKsPropertySet
**
piks
)
HRESULT
IKsPrivatePropertySetImpl_Create
(
REFIID
riid
,
void
**
ppv
)
{
IKsPrivatePropertySetImpl
*
iks
;
TRACE
(
"(%s, %p)
\n
"
,
debugstr_guid
(
riid
),
piks
)
;
HRESULT
hr
;
if
(
!
IsEqualIID
(
riid
,
&
IID_IUnknown
)
&&
!
IsEqualIID
(
riid
,
&
IID_IKsPropertySet
))
{
*
piks
=
0
;
return
E_NOINTERFACE
;
TRACE
(
"(%s, %p)
\n
"
,
debugstr_guid
(
riid
),
ppv
);
iks
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
iks
));
if
(
!
iks
)
{
WARN
(
"out of memory
\n
"
);
return
DSERR_OUTOFMEMORY
;
}
iks
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
iks
));
iks
->
ref
=
1
;
iks
->
IKsPropertySet_iface
.
lpVtbl
=
&
ikspvt
;
*
piks
=
&
iks
->
IKsPropertySet_iface
;
return
S_OK
;
hr
=
IKsPropertySet_QueryInterface
(
&
iks
->
IKsPropertySet_iface
,
riid
,
ppv
);
IKsPropertySet_Release
(
&
iks
->
IKsPropertySet_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