mirror of
https://github.com/reactos/reactos.git
synced 2024-07-01 02:10:07 +00:00
fix usage of FIELD_OFFSET
This commit is contained in:
parent
49389438a3
commit
e83bb30af0
|
@ -5335,7 +5335,11 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromHBITMAP(HBITMAP hbm, HPALETTE hpal, GpBi
|
|||
GpStatus retval;
|
||||
PixelFormat format;
|
||||
BitmapData lockeddata;
|
||||
#ifdef __REACTOS__
|
||||
char bmibuf[FIELD_OFFSET(BITMAPINFO, bmiColors) + 256 * sizeof(RGBQUAD)];
|
||||
#else
|
||||
char bmibuf[FIELD_OFFSET(BITMAPINFO, bmiColors[256])];
|
||||
#endif
|
||||
BITMAPINFO *pbmi = (BITMAPINFO *)bmibuf;
|
||||
|
||||
TRACE("%p %p %p\n", hbm, hpal, bitmap);
|
||||
|
|
Loading…
Reference in a new issue