Quicken/CreateCompatibleBitmap issue revisited

Rein Klazes wijn at wanadoo.nl
Fri Apr 29 13:13:46 CDT 2005


On Fri, 29 Apr 2005 10:46:31 -0400, you wrote:

> This seems wrong to me on
> three counts: (1) MSDN states that if either width or height is zero, a 1x1
> monochrome bitmap is returned 

Indeed, what happens if you try this obvious patch:

========================================>8=======================================
--- wine/dlls/gdi/bitmap.c	2005-04-14 10:50:50.000000000 +0200
+++ mywine/dlls/gdi/bitmap.c	2005-04-29 20:04:37.000000000 +0200
@@ -134,7 +134,7 @@ HBITMAP WINAPI CreateCompatibleBitmap( H
 
     TRACE("(%p,%d,%d) = \n", hdc, width, height);
 
-    if ((width >= 0x10000) || (height >= 0x10000))
+    if ((height && width >= 0x10000) || (width && height >= 0x10000))
     {
         FIXME("got bad width %d or height %d, please look for reason\n",
               width, height);
========================================>8=======================================

Rein.



More information about the wine-devel mailing list