Peter Urbanec : gdi32: Fix 64-bit pointer issues when copying upside-down bitmaps.

Alexandre Julliard julliard at winehq.org
Fri Feb 25 11:19:48 CST 2011


Module: wine
Branch: master
Commit: de7d1ad77a78156bbd00ad460a21e9ea08b13b46
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=de7d1ad77a78156bbd00ad460a21e9ea08b13b46

Author: Peter Urbanec <winehq.org at urbanec.net>
Date:   Fri Feb 25 23:41:31 2011 +1100

gdi32: Fix 64-bit pointer issues when copying upside-down bitmaps.

---

 dlls/gdi32/dib.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/gdi32/dib.c b/dlls/gdi32/dib.c
index 0619304..eae7f35 100644
--- a/dlls/gdi32/dib.c
+++ b/dlls/gdi32/dib.c
@@ -885,7 +885,7 @@ INT WINAPI GetDIBits(
              */
             if (bmp->dib->dsBmih.biHeight < 0)
             {
-                sbits += (srcwidthb * (abs(bmp->dib->dsBmih.biHeight) - 2 * startscan - 1));
+                sbits += (srcwidthb * (int)(abs(bmp->dib->dsBmih.biHeight) - 2 * startscan - 1));
                 srcwidthb = -srcwidthb;
             }
             switch( bpp ) {




More information about the wine-cvs mailing list