Signed-off-by: Mathew Hodson mathew.hodson@gmail.com --- include/wingdi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/wingdi.h b/include/wingdi.h index 0a456f8..bdd1506 100644 --- a/include/wingdi.h +++ b/include/wingdi.h @@ -1916,7 +1916,7 @@ typedef struct { typedef struct tagBITMAPINFO { BITMAPINFOHEADER bmiHeader; - RGBQUAD bmiColors[1]; + RGBQUAD bmiColors[256]; } BITMAPINFO, *PBITMAPINFO, *LPBITMAPINFO;
typedef struct @@ -1931,7 +1931,7 @@ typedef struct typedef struct { BITMAPCOREHEADER bmciHeader; - RGBTRIPLE bmciColors[1]; + RGBTRIPLE bmciColors[256]; } BITMAPCOREINFO, *PBITMAPCOREINFO, *LPBITMAPCOREINFO;
#define DIB_RGB_COLORS 0
Hi,
While running your changed tests, I think I found new failures. Being a bot and all I'm not very good at pattern recognition, so I might be wrong, but could you please double-check?
Full results can be found at: https://testbot.winehq.org/JobDetails.pl?Key=69963
Your paranoid android.
=== debiant (build log) ===
../../../../wine/include/winnt.h:394:51: error: size of unnamed array is negative ../../../../wine/include/winnt.h:394:51: error: size of unnamed array is negative ../../../../wine/include/winnt.h:394:51: error: size of unnamed array is negative ../../../../wine/include/winnt.h:394:51: error: size of unnamed array is negative ../../../../wine/include/winnt.h:394:51: error: size of unnamed array is negative ../../../../wine/include/winnt.h:394:51: error: size of unnamed array is negative ../../../../wine/include/winnt.h:394:51: error: size of unnamed array is negative ../../../../wine/include/winnt.h:394:51: error: size of unnamed array is negative Task: The win32 Wine build failed
=== debiant (build log) ===
../../../../wine/include/winnt.h:394:51: error: size of unnamed array is negative ../../../../wine/include/winnt.h:394:51: error: size of unnamed array is negative ../../../../wine/include/winnt.h:394:51: error: size of unnamed array is negative ../../../../wine/include/winnt.h:394:51: error: size of unnamed array is negative ../../../../wine/include/winnt.h:394:51: error: size of unnamed array is negative ../../../../wine/include/winnt.h:394:51: error: size of unnamed array is negative ../../../../wine/include/winnt.h:394:51: error: size of unnamed array is negative ../../../../wine/include/winnt.h:394:51: error: size of unnamed array is negative Task: The wow64 Wine build failed
Hi, Mathew.
Those are public types, you can't change them like that. Invalid access, if it actually happens, should be fixed in code that's using them.