mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
fixed incorrect size calculation
This commit is contained in:
@@ -107,7 +107,7 @@ void gdi_Bitmap_Decompress(rdpContext* context, rdpBitmap* bitmap,
|
||||
rdpGdi* gdi;
|
||||
BOOL status;
|
||||
|
||||
size = width * height * (bpp + 7) / 8;
|
||||
size = width * height * ((bpp + 7) / 8);
|
||||
|
||||
if (bitmap->data == NULL)
|
||||
bitmap->data = (BYTE*) malloc(size);
|
||||
|
||||
Reference in New Issue
Block a user