Commit 0035b110 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

d3d9: Do not touch output parameter when d3d9_GetAdapterLUID() fails.

parent 7aa4d276
......@@ -542,9 +542,8 @@ static HRESULT WINAPI d3d9_GetAdapterLUID(IDirect3D9Ex *iface, UINT adapter, LUI
adapter_id.description_size = 0;
adapter_id.device_name_size = 0;
hr = wined3d_get_adapter_identifier(d3d9->wined3d, adapter, 0, &adapter_id);
*luid = adapter_id.adapter_luid;
if (SUCCEEDED(hr = wined3d_get_adapter_identifier(d3d9->wined3d, adapter, 0, &adapter_id)))
*luid = adapter_id.adapter_luid;
return hr;
}
......
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