[Gdi32]
[reactos.git] / reactos / win32ss / gdi / gdi32 / wine / mfdrv / objects.c
index 59fe08a..bfaa23b 100644 (file)
@@ -176,8 +176,11 @@ INT16 MFDRV_CreateBrushIndirect(PHYSDEV dev, HBRUSH hBrush )
     case BS_PATTERN:
     case BS_DIBPATTERN:
         {
+#ifdef __REACTOS__
             char buffer[sizeof(BITMAPINFO) + 255 * sizeof(RGBQUAD)]; // ros
-            //char buffer[FIELD_OFFSET( BITMAPINFO, bmiColors[256] )];
+#else
+            char buffer[FIELD_OFFSET( BITMAPINFO, bmiColors[256] )];
+#endif
             BITMAPINFO *dst_info, *src_info = (BITMAPINFO *)buffer;
             DWORD info_size;
             char *dst_ptr;