Fail if less then one entire line requested in GetBitmapBits32.
diff --git a/objects/bitmap.c b/objects/bitmap.c
index 27dd4f5..3e446c3 100644
--- a/objects/bitmap.c
+++ b/objects/bitmap.c
@@ -288,6 +288,13 @@
height = count / bmp->bitmap.bmWidthBytes;
if (height > bmp->bitmap.bmHeight) height = bmp->bitmap.bmHeight;
count = height * bmp->bitmap.bmWidthBytes;
+ if (count == 0)
+ {
+ WARN(bitmap, "Less then one entire line requested\n");
+ GDI_HEAP_UNLOCK( hbitmap );
+ return 0;
+ }
+
TRACE(bitmap, "(%08x, %ld, %p) %dx%d %d colors fetched height: %ld\n",
hbitmap, count, bits, bmp->bitmap.bmWidth, bmp->bitmap.bmHeight,