Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Operating System: ReactOS
Platform: x86 Hardware
-
Sprint 1
-
7074
Description
Created an attachment (id=7695)
Patch for CreateDIBitmap
Fixed the following problems:
1)If there is no header, then set the corresponding Error: Error_Invalid_Parameter
2)Check if the BiCompression param is valid.CreateDIBitmap doesn't support BI_JPEG, BI_PNG neither BI_BITFIELDS. Don't set any Error.
3)Check if the biClr is valid in the BitmapInfoHeader. CreateDIBitmap just support DIB_RGB_COLORS, DIB_PAL_COLORS and the undocumented("2"). Set the proper Error: Error_Invalid_Parameter
4)Check if biWidth is negative. CreateDIBitmap doesn't support negative values.
5)Check if biHeight is negative. CretateDIBitmap supports Top-Down DIBs.