Commit 47cf3204 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

dxgi: Simplify dxgi_adapter_GetDesc().

parent fb53f6e7
...@@ -200,9 +200,8 @@ static HRESULT STDMETHODCALLTYPE dxgi_adapter_GetDesc(IWineDXGIAdapter *iface, D ...@@ -200,9 +200,8 @@ static HRESULT STDMETHODCALLTYPE dxgi_adapter_GetDesc(IWineDXGIAdapter *iface, D
if (!desc) if (!desc)
return E_INVALIDARG; return E_INVALIDARG;
if (FAILED(hr = dxgi_adapter_GetDesc1(iface, &desc1))) if (SUCCEEDED(hr = dxgi_adapter_GetDesc1(iface, &desc1)))
return hr; memcpy(desc, &desc1, sizeof(*desc));
memcpy(desc, &desc1, sizeof(*desc));
return hr; 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