[Bug 5671] qtracker crashes before first screen

Wine Bugs wine-bugs at winehq.org
Thu Aug 9 19:06:03 CDT 2007


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





------- Additional Comments From xerox_xerox2000 at yahoo.co.uk  2007-09-08 19:06 -------
Hi, i think the initial bug has been fixed.   With current git I get the crash
with a division by zero, from comment #4. There was a call to
gdi32.SetTextColor, just before the crash. It looks like this app (just as quite
some others) is not happy with the screendepth wine reports. When we report back
screendepth 32 ***, the app starts fine , and seems fully functional 


***: stupid hack:


diff --git a/dlls/gdi32/dc.c b/dlls/gdi32/dc.c
index 30acc03..e595dbe 100644
--- a/dlls/gdi32/dc.c
+++ b/dlls/gdi32/dc.c
@@ -903,7 +903,7 @@ INT WINAPI GetDeviceCaps( HDC hdc, INT cap )
         case SIZEPALETTE: ret = 2; break;
         }
         GDI_ReleaseObj( hdc );
-    }
+    }if(cap == BITSPIXEL && ret == 24) ret =32;
     return ret;
 }



-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list