Commit 77844e2a authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

d3d11: Set output parameters to NULL when D3D11CreateDevice() fails.

parent ccb30415
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment