fonts: fix ExtTextOut return value

Huw D M Davies h.davies1 at physics.ox.ac.uk
Thu Sep 8 08:45:11 CDT 2005


        Huw Davies <huw at codeweavers.com>
        Fix return value of ExtTextOut in the case when count == 0.
-- 
Huw Davies
huw at codeweavers.com
Index: dlls/gdi/font.c
===================================================================
RCS file: /home/wine/wine/dlls/gdi/font.c,v
retrieving revision 1.16
diff -u -p -r1.16 font.c
--- dlls/gdi/font.c	8 Sep 2005 12:40:20 -0000	1.16
+++ dlls/gdi/font.c	8 Sep 2005 13:42:42 -0000
@@ -1856,7 +1856,10 @@ BOOL WINAPI ExtTextOutW( HDC hdc, INT x,
         dc->funcs->pExtTextOut(dc->physDev, 0, 0, ETO_OPAQUE, &rc, NULL, 0, NULL);
 
     if(count == 0)
+    {
+        ret = TRUE;
         goto done;
+    }
 
     pt.x = x;
     pt.y = y;



More information about the wine-patches mailing list