Author: jgardou
Date: Thu Oct 18 19:33:46 2012
New Revision: 57575
URL:
http://svn.reactos.org/svn/reactos?rev=57575&view=rev
Log:
[WIN32K]
- Try to fix MSVC build
Modified:
trunk/reactos/dll/win32/shell32/iconcache.cpp
Modified: trunk/reactos/dll/win32/shell32/iconcache.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/iconcach…
==============================================================================
--- trunk/reactos/dll/win32/shell32/iconcache.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/iconcache.cpp [iso-8859-1] Thu Oct 18 19:33:46 2012
@@ -183,7 +183,7 @@
if(ShortcutBitmapInfo.bmBitsPixel == 32)
{
BOOL add_alpha;
- BYTE buffer[FIELD_OFFSET(BITMAPINFO, bmiColors[256])];
+ BYTE buffer[sizeof(BITMAPINFO) + 256 * sizeof(RGBQUAD)];
BITMAPINFO* lpbmi = (BITMAPINFO*)buffer;
PVOID bits;
PULONG pixel;