https://bugs.winehq.org/show_bug.cgi?id=30615
--- Comment #20 from Bartosz gang65@poczta.onet.pl --- According to NtGdiCreateBitmap information from: https://learn.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-createb...
[in] lpBits
A pointer to an array of color data used to set the colors in a rectangle of pixels. Each scan line in the rectangle must be word aligned (scan lines that are not word aligned must be padded with zeros). The buffer size expected, cj, can be calculated using the formula:
cj = (((nWidth * nPlanes * nBitCount + 15) >> 4) << 1) * nHeight;