[Bug 22644] DX8000: Crashes during startup

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Nov 25 13:27:45 CST 2010


http://bugs.winehq.org/show_bug.cgi?id=22644

Louis Lenders <xerox_xerox2000 at yahoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |xerox_xerox2000 at yahoo.co.uk
          Component|-unknown                    |directx-ddraw

--- Comment #8 from Louis Lenders <xerox_xerox2000 at yahoo.co.uk> 2010-11-25 13:27:45 CST ---
I get the sam ecrash as in comment #5. Apparently it's choking in SrcRect being
NULL. A hack like below makes the app start fine for me:

diff --git a/dlls/ddraw/surface.c b/dlls/ddraw/surface.c
index 5d0a8e6..fca173b 100644
--- a/dlls/ddraw/surface.c
+++ b/dlls/ddraw/surface.c
@@ -904,9 +904,11 @@ static HRESULT WINAPI
ddraw_surface7_Blt(IDirectDrawSurface
      * and replace the ddraw surfaces with the wined3d surfaces
      * So far no blitting operations using surfaces in the bltfx struct are
sup
      */
+
+if(SrcRect) 
     hr = IWineD3DSurface_Blt(This->WineD3DSurface, DestRect, Src ?
Src->WineD3D
             SrcRect, Flags, (WINEDDBLTFX *)DDBltFx, WINED3DTEXF_LINEAR);
-
+else hr = DDERR_UNSUPPORTED;
     LeaveCriticalSection(&ddraw_cs);
     switch(hr)
     {

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list