From 135c3a646dd56658614b5fb3f370dbea72f3d73b Mon Sep 17 00:00:00 2001
From: Thomas Faber <thfabba@gmx.de>
Date: Mon, 30 Jan 2012 18:26:43 +0100
Subject: comctl32: Fix MSVC build in imagelist.c.

---
 dlls/comctl32/imagelist.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/imagelist.c b/dlls/comctl32/imagelist.c
index ccc594f..bb4107b 100644
--- a/dlls/comctl32/imagelist.c
+++ b/dlls/comctl32/imagelist.c
@@ -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(BITMAPINFO) + (256 - 1) * sizeof(RGBQUAD)];
         BITMAPINFO *bmi = (BITMAPINFO *)buffer;
 
         TRACE("Creating DIBSection %d x %d, %d Bits per Pixel\n",
-- 
1.7.1.GIT
