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
c528ef47
Commit
c528ef47
authored
Nov 09, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
evr/presenter: Fix error handling on object creation.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
409392df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
presenter.c
dlls/evr/presenter.c
+9
-4
No files found.
dlls/evr/presenter.c
View file @
c528ef47
...
...
@@ -1207,13 +1207,18 @@ HRESULT evr_presenter_create(IUnknown *outer, void **out)
InitializeCriticalSection
(
&
object
->
cs
);
if
(
FAILED
(
hr
=
DXVA2CreateDirect3DDeviceManager9
(
&
object
->
reset_token
,
&
object
->
device_manager
)))
IUnknown_Release
(
&
object
->
IUnknown_inner
)
;
goto
failed
;
if
(
FAILED
(
hr
=
video_presenter_init_d3d
(
object
)))
IUnknown_Release
(
&
object
->
IUnknown_inner
)
;
goto
failed
;
if
(
SUCCEEDED
(
hr
))
*
out
=
&
object
->
IUnknown_inner
;
*
out
=
&
object
->
IUnknown_inner
;
return
S_OK
;
failed:
IUnknown_Release
(
&
object
->
IUnknown_inner
);
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