[PATCH 1/3] dxgi: Return DXGI_ERROR_SDK_COMPONENT_MISSING from DXGIGetDebugInterface1().

Józef Kucia jkucia at codeweavers.com
Wed Aug 15 05:03:23 CDT 2018


Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---

I did more testing and DXGI_ERROR_SDK_COMPONENT_MISSING is the correct
error code to return.

---
 dlls/dxgi/dxgi_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/dxgi/dxgi_main.c b/dlls/dxgi/dxgi_main.c
index cd2c39f4e14d..83c3f3734a77 100644
--- a/dlls/dxgi/dxgi_main.c
+++ b/dlls/dxgi/dxgi_main.c
@@ -253,6 +253,6 @@ HRESULT WINAPI DXGIGetDebugInterface1(UINT flags, REFIID iid, void **debug)
 {
     TRACE("flags %#x, iid %s, debug %p.\n", flags, debugstr_guid(iid), debug);
 
-    WARN("Returning E_NOINTERFACE.\n");
-    return E_NOINTERFACE;
+    WARN("Returning DXGI_ERROR_SDK_COMPONENT_MISSING.\n");
+    return DXGI_ERROR_SDK_COMPONENT_MISSING;
 }
-- 
2.16.4




More information about the wine-devel mailing list