gdiplus: Fix height calculation

André Hentschel nerv at dawncrow.de
Thu Sep 22 12:21:41 CDT 2011


spotted by "Roman Shchekin" in http://bugs.winehq.org/show_bug.cgi?id=28466
---
 dlls/gdiplus/graphics.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 7fcff02..50d2f7c 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -4329,7 +4329,7 @@ GpStatus gdip_format_string(HDC hdc,
     nheight = roundr(rect->Height);
 
     if (rect->Width >= INT_MAX || rect->Width < 0.5) nwidth = INT_MAX;
-    if (rect->Height >= INT_MAX || rect->Width < 0.5) nheight = INT_MAX;
+    if (rect->Height >= INT_MAX || rect->Height < 0.5) nheight = INT_MAX;
 
     for(i = 0, j = 0; i < length; i++){
         /* FIXME: This makes the indexes passed to callback inaccurate. */
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list