Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
77844e2a
Commit
77844e2a
authored
Sep 15, 2015
by
Józef Kucia
Committed by
Alexandre Julliard
Sep 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d11: Set output parameters to NULL when D3D11CreateDevice() fails.
parent
ccb30415
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
d3d11_main.c
dlls/d3d11/d3d11_main.c
+7
-0
No files found.
dlls/d3d11/d3d11_main.c
View file @
77844e2a
...
...
@@ -157,6 +157,13 @@ HRESULT WINAPI D3D11CreateDevice(IDXGIAdapter *adapter, D3D_DRIVER_TYPE driver_t
adapter
,
debug_d3d_driver_type
(
driver_type
),
swrast
,
flags
,
feature_levels
,
levels
,
sdk_version
,
device_out
,
obtained_feature_level
,
immediate_context
);
if
(
device_out
)
*
device_out
=
NULL
;
if
(
obtained_feature_level
)
*
obtained_feature_level
=
0
;
if
(
immediate_context
)
*
immediate_context
=
NULL
;
if
(
adapter
)
{
IDXGIAdapter_AddRef
(
adapter
);
...
...
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