Height calculation was 1 off in ImageList_Read.

This commit is contained in:
Marcus Meissner 2000-02-07 16:00:33 +00:00 committed by Alexandre Julliard
parent b2f6f0e7d2
commit bd26e4d2cf
1 changed files with 2 additions and 2 deletions

View File

@ -1972,8 +1972,8 @@ static HBITMAP _read_bitmap(LPSTREAM pstm,int ilcFlag,int cx,int cy) {
nbytesperline = (height/cy)*bytesperline;
for (i=0;i<height;i++) {
memcpy(
nbits+((height-i)%cy)*nbytesperline+(i/cy)*bytesperline,
bits+bytesperline*(height-i),
nbits+((height-1-i)%cy)*nbytesperline+(i/cy)*bytesperline,
bits+bytesperline*(height-1-i),
bytesperline
);
}