gdi32: Fix return values in BitBlt/StretchBlt.

oldstable
Huw Davies 2006-04-18 22:12:15 +01:00 committed by Alexandre Julliard
parent bf23ad0da7
commit 7f8ad07ee0
1 changed files with 2 additions and 2 deletions

View File

@ -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 );