"Michael Kaufmann" hallo@michael-kaufmann.ch wrote:
The application "Fritz 5.32" calls GetDIBits() with a bitmap that is still selected in a device context (see bug 3893). The bitmap has a color table. GetDIBits() creates a memory DC, selects the bitmap into this DC, and calls GetDIBColorTable(). But this fails, because Wine can't select this bitmap in a memory device context again. According to MSDN, calling GetDIBits with a bitmap that is selected in a device context is not allowed. But surprisingly it works on Windows.
Does anybody have an idea how to solve this problem?
A very first step should be to write a test case and integrate it into the Wine GDI tests.