user32: Accept BI_BITFIELDS format for icons when creating icons.

This commit is contained in:
Nikolay Sivov 2013-01-23 23:18:07 +04:00 committed by Alexandre Julliard
parent 5b38dac7ac
commit 4c24882e3e
1 changed files with 2 additions and 1 deletions

View File

@ -813,7 +813,8 @@ static HICON create_icon_from_bmi( BITMAPINFO *bmi, HMODULE module, LPCWSTR resn
if ( (bmi->bmiHeader.biSize != sizeof(BITMAPCOREHEADER)) && if ( (bmi->bmiHeader.biSize != sizeof(BITMAPCOREHEADER)) &&
(bmi->bmiHeader.biSize != sizeof(BITMAPINFOHEADER) || (bmi->bmiHeader.biSize != sizeof(BITMAPINFOHEADER) ||
bmi->bmiHeader.biCompression != BI_RGB) ) (bmi->bmiHeader.biCompression != BI_RGB &&
bmi->bmiHeader.biCompression != BI_BITFIELDS)) )
{ {
WARN_(cursor)("\tinvalid resource bitmap header.\n"); WARN_(cursor)("\tinvalid resource bitmap header.\n");
return 0; return 0;