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
165f8d1f
Commit
165f8d1f
authored
Jul 15, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmsynth: Simplify error handling when creating a DMSynthSink object.
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d7dd5d8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
synthsink.c
dlls/dmsynth/synthsink.c
+4
-9
No files found.
dlls/dmsynth/synthsink.c
View file @
165f8d1f
...
...
@@ -282,7 +282,7 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicSynthSinkImpl(LPCGUID riid, LPVOID* ret_i
obj
->
IDirectMusicSynthSink_iface
.
lpVtbl
=
&
DirectMusicSynthSink_Vtbl
;
obj
->
IKsControl_iface
.
lpVtbl
=
&
DMSynthSinkImpl_IKsControl_Vtbl
;
obj
->
ref
=
0
;
obj
->
ref
=
1
;
hr
=
CoCreateInstance
(
&
CLSID_SystemClock
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IReferenceClock
,
(
LPVOID
*
)
&
obj
->
latency_clock
);
if
(
FAILED
(
hr
))
...
...
@@ -291,13 +291,8 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicSynthSinkImpl(LPCGUID riid, LPVOID* ret_i
return
hr
;
}
hr
=
IDirectMusicSynthSinkImpl_QueryInterface
((
LPDIRECTMUSICSYNTHSINK
)
obj
,
riid
,
ret_iface
);
if
(
FAILED
(
hr
))
{
IReferenceClock_Release
(
obj
->
latency_clock
);
HeapFree
(
GetProcessHeap
(),
0
,
obj
);
return
hr
;
}
hr
=
IDirectMusicSynthSink_QueryInterface
(
&
obj
->
IDirectMusicSynthSink_iface
,
riid
,
ret_iface
);
IDirectMusicSynthSink_Release
(
&
obj
->
IDirectMusicSynthSink_iface
);
return
S_OK
;
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