Thomas Faber : comctl32: Fix MSVC build in imagelist.c.

Alexandre Julliard julliard at winehq.org
Mon Jan 30 14:05:58 CST 2012


Module: wine
Branch: master
Commit: 2fb139ffe750e57942acd78e8ec915ee0d40e531
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2fb139ffe750e57942acd78e8ec915ee0d40e531

Author: Thomas Faber <thfabba at gmx.de>
Date:   Mon Jan 30 18:26:43 2012 +0100

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..28e2968 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(BITMAPINFOHEADER) + 256 * sizeof(RGBQUAD)];
         BITMAPINFO *bmi = (BITMAPINFO *)buffer;
 
         TRACE("Creating DIBSection %d x %d, %d Bits per Pixel\n",




More information about the wine-cvs mailing list