From 7cee0b2ed02a7be63db890148a4db2e7a58feced Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20D=C3=B6singer?= <stefan@codeweavers.com>
Date: Tue, 17 Apr 2007 09:20:54 +0200
Subject: [PATCH] d3d9: Do not allow Direct3D9::GetAdapterModeCount to be
 called with D3DFMT_UNKNOWN.

---
 dlls/d3d9/directx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/d3d9/directx.c b/dlls/d3d9/directx.c
index ec4f7aa4155..fd383e96a74 100644
--- a/dlls/d3d9/directx.c
+++ b/dlls/d3d9/directx.c
@@ -100,7 +100,7 @@ static UINT WINAPI IDirect3D9Impl_GetAdapterModeCount(LPDIRECT3D9 iface, UINT Ad
     IDirect3D9Impl *This = (IDirect3D9Impl *)iface;
 
     /* Others than that not supported by d3d9, but reported by wined3d for ddraw. Filter them out */
-    if(Format != D3DFMT_X8R8G8B8 && Format != D3DFMT_R5G6B5 && Format != D3DFMT_UNKNOWN) {
+    if(Format != D3DFMT_X8R8G8B8 && Format != D3DFMT_R5G6B5) {
         return 0;
     }
 
-- 
GitLab