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

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2018-12-03 14:41:08 +01:00 committed by Alexandre Julliard
parent 7aa4d27681
commit 0035b1109c

View file

@ -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;
}