comctl32: Fix MSVC build in imagelist.c.

oldstable
Thomas Faber 2012-01-30 18:26:43 +01:00 committed by Alexandre Julliard
parent 5860a5b386
commit 2fb139ffe7
1 changed files with 1 additions and 1 deletions

View File

@ -3094,7 +3094,7 @@ static HBITMAP ImageList_CreateImage(HDC hdc, HIMAGELIST himl, UINT count)
if ((ilc >= ILC_COLOR4 && ilc <= ILC_COLOR32) || ilc == ILC_COLOR)
{
char buffer[FIELD_OFFSET( BITMAPINFO, bmiColors[256] )];
char buffer[sizeof(BITMAPINFOHEADER) + 256 * sizeof(RGBQUAD)];
BITMAPINFO *bmi = (BITMAPINFO *)buffer;
TRACE("Creating DIBSection %d x %d, %d Bits per Pixel\n",