3 Jun
2024
3 Jun
'24
12:46 p.m.
Emil Velikov (@xexaxo) commented about dlls/win32u/dce.c:
void create_offscreen_window_surface( HWND hwnd, const RECT *visible_rect, struct window_surface **surface ) { + char buffer[FIELD_OFFSET( BITMAPINFO, bmiColors[256] )];
Does we need the 256 here? Note that *Clr* and *PelsPer* bits in the header are not initialised, so we pick random values off the stack. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5764#note_72208