Fixed reading bitmap from buffer.

This commit is contained in:
Armin Novak 2015-04-20 15:13:23 +02:00
parent 7990ea6371
commit ad41fc59a3

View File

@ -261,7 +261,7 @@ int winpr_image_bitmap_read_buffer(wImage* image, BYTE* buffer, int size)
image->bitsPerPixel = bi.biBitCount;
image->bytesPerPixel = (image->bitsPerPixel / 8);
image->scanline = (bi.biSizeImage / bi.biHeight);
image->scanline = (bi.biSizeImage / image->height);
image->data = (BYTE*) malloc(bi.biSizeImage);