Commit bfdd5df7 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

dxgi: Implement IDXGIDevice::GetParent().

parent aa85b4c6
......@@ -112,9 +112,22 @@ static HRESULT STDMETHODCALLTYPE dxgi_device_GetPrivateData(IWineDXGIDevice *ifa
static HRESULT STDMETHODCALLTYPE dxgi_device_GetParent(IWineDXGIDevice *iface, REFIID riid, void **parent)
{
FIXME("iface %p, riid %s, parent %p stub!\n", iface, debugstr_guid(riid), parent);
IDXGIAdapter *adapter;
HRESULT hr;
return E_NOTIMPL;
TRACE("iface %p, riid %s, parent %p.\n", iface, debugstr_guid(riid), parent);
hr = IDXGIDevice_GetAdapter(iface, &adapter);
if (FAILED(hr))
{
ERR("Failed to get adapter, hr %#x.\n", hr);
return hr;
}
hr = IDXGIAdapter_QueryInterface(adapter, riid, parent);
IDXGIAdapter_Release(adapter);
return hr;
}
/* IDXGIDevice methods */
......
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