[PATCH 2/5] dxgi: Implement dxgi_factory_GetWindowAssociation().
Zhiyi Zhang
zzhang at codeweavers.com
Tue Apr 23 07:58:54 CDT 2019
Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
---
dlls/dxgi/factory.c | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/dlls/dxgi/factory.c b/dlls/dxgi/factory.c
index 5aadef62e4..65783237e7 100644
--- a/dlls/dxgi/factory.c
+++ b/dlls/dxgi/factory.c
@@ -248,9 +248,18 @@ done:
static HRESULT STDMETHODCALLTYPE dxgi_factory_GetWindowAssociation(IWineDXGIFactory *iface, HWND *window)
{
- FIXME("iface %p, window %p stub!\n", iface, window);
+ TRACE("iface %p, window %p.\n", iface, window);
- return E_NOTIMPL;
+ if (!window)
+ {
+ WARN("Invalid pointer.\n");
+ return DXGI_ERROR_INVALID_CALL;
+ }
+
+ /* Yes, tests show that it always return NULL for unknown reason. */
+ *window = NULL;
+
+ return S_OK;
}
static HRESULT STDMETHODCALLTYPE dxgi_factory_CreateSwapChain(IWineDXGIFactory *iface,
--
2.20.1
More information about the wine-devel
mailing list