André Hentschel : d3d9: Improve CheckDeviceState stub to run Firefox 4 Beta 7.

Alexandre Julliard julliard at winehq.org
Fri Nov 12 11:22:34 CST 2010


Module: wine
Branch: master
Commit: ce0e1f07dc597fd157b914baa70588423b7eb6c6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ce0e1f07dc597fd157b914baa70588423b7eb6c6

Author: André Hentschel <nerv at dawncrow.de>
Date:   Thu Nov 11 20:35:20 2010 +0100

d3d9: Improve CheckDeviceState stub to run Firefox 4 Beta 7.

---

 dlls/d3d9/device.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index b097ece..1c2aa99 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -2790,9 +2790,14 @@ static HRESULT WINAPI IDirect3DDevice9ExImpl_GetMaximumFrameLatency(IDirect3DDev
 
 static HRESULT WINAPI IDirect3DDevice9ExImpl_CheckDeviceState(IDirect3DDevice9Ex *iface, HWND dst_window)
 {
-    FIXME("iface %p, dst_window %p stub!\n", iface, dst_window);
+    static int i;
 
-    return WINED3DERR_INVALIDCALL;
+    TRACE("iface %p, dst_window %p stub!\n", iface, dst_window);
+
+    if (!i++)
+        FIXME("iface %p, dst_window %p stub!\n", iface, dst_window);
+
+    return WINED3D_OK;
 }
 
 static HRESULT WINAPI IDirect3DDevice9ExImpl_CreateRenderTargetEx(IDirect3DDevice9Ex *iface,




More information about the wine-cvs mailing list