Commit 59193b0c authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

d3d10_1: Validate parameters in D3D10CreateDevice1().

parent cd8be0b4
......@@ -73,6 +73,14 @@ HRESULT WINAPI D3D10CreateDevice1(IDXGIAdapter *adapter, D3D10_DRIVER_TYPE drive
adapter, debug_d3d10_driver_type(driver_type), swrast, flags,
debug_d3d10_feature_level(hw_level), sdk_version, device);
if (!device)
return E_INVALIDARG;
*device = NULL;
if (!hw_level)
return E_INVALIDARG;
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