Commit e6d4bcd7 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Check that GetObject is successful.

parent fb7dbb62
......@@ -94,7 +94,8 @@ static BOOL EMFDRV_BitBlockTransfer(
else
return FALSE;
GetObjectW(hBitmap, sizeof(BITMAP), &BM);
if(sizeof(BITMAP) != GetObjectW(hBitmap, sizeof(BITMAP), &BM))
return FALSE;
nBPP = BM.bmPlanes * BM.bmBitsPixel;
if(nBPP > 8) nBPP = 24; /* FIXME Can't get 16bpp to work for some reason */
......
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