Commit de7d1ad7 authored by Peter Urbanec's avatar Peter Urbanec Committed by Alexandre Julliard

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

parent 7c8f5feb
...@@ -885,7 +885,7 @@ INT WINAPI GetDIBits( ...@@ -885,7 +885,7 @@ INT WINAPI GetDIBits(
*/ */
if (bmp->dib->dsBmih.biHeight < 0) 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; srcwidthb = -srcwidthb;
} }
switch( bpp ) { switch( bpp ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment