diff --git a/dlls/gdi/bitblt.c b/dlls/gdi/bitblt.c index 25053e66b28..0d78465076c 100644 --- a/dlls/gdi/bitblt.c +++ b/dlls/gdi/bitblt.c @@ -112,7 +112,7 @@ BOOL WINAPI BitBlt( HDC hdcDst, INT xDst, INT yDst, INT width, width, height, bits, (BITMAPINFO*)&info_hdr, DIB_RGB_COLORS, rop); HeapFree(GetProcessHeap(), 0, bits); - return (lines == bm.bmHeight); + return (lines == height); } else if(dcDst) GDI_ReleaseObj( hdcDst ); @@ -190,7 +190,7 @@ BOOL WINAPI StretchBlt( HDC hdcDst, INT xDst, INT yDst, widthSrc, heightSrc, bits, (BITMAPINFO*)&info_hdr, DIB_RGB_COLORS, rop); HeapFree(GetProcessHeap(), 0, bits); - return (lines == bm.bmHeight); + return (lines == heightSrc); } else if(dcDst) GDI_ReleaseObj( hdcDst );