15 Jan
2026
15 Jan
'26
3:51 a.m.
Etaash Mathamsetty (@etaash.mathamsetty) commented about dlls/winewayland.drv/wayland_surface.c:
+ free(non_square_bits); + goto failed; + } + + copy_rectangle_into_center_of_square(non_square_bits, bm.bmWidth, bm.bmHeight, square_length, bits); + + free(non_square_bits); + } + else + { + if (!NtGdiGetDIBitsInternal(hdc, color, 0, bm.bmHeight, bits, info, + DIB_RGB_COLORS, 0, 0)) + goto failed; + }
for (i = 0; i < bm.bmWidth * bm.bmHeight; i++) I just noticed this: this and the bounds for the other for loops below are now incorrect.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9868#note_127022