Commit bd26e4d2 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Height calculation was 1 off in ImageList_Read.

parent b2f6f0e7
......@@ -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
);
}
......
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