https://bugs.winehq.org/show_bug.cgi?id=51834
Bug ID: 51834 Summary: EMF DC emits invalid EMF when calling StretchDiBits with info->bmiHeader.biSizeImage = 0 Product: Wine Version: 6.18 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdi32 Assignee: wine-bugs@winehq.org Reporter: jinoh.kang.kr@gmail.com CC: jacek@codeweavers.com, zzhang@codeweavers.com Distribution: ---
BITMAPINFOHEADER allows setting biSizeImage to zero when biCompression is BI_RGB.
However, the Wine EMF DC does not handle this case and takes the biSizeImage value as-is.
This results in an invalid Enhanced Metafile output.