gdi32: Remove call to CreateCompatibleDC() from GetDIBits() implementation (try 1)

Huw Davies huw at
Mon Oct 23 04:25:52 CDT 2006

On Fri, Oct 20, 2006 at 05:49:09PM -0500, Alex Villací­s Lasso wrote:
> This is the first attempt at a patch that will fix the debug assertion 
> when icons are rendered into metafiles (triggered by Enterprise 
> Architect 6.5, and possibly others). This patch simply removes mentions 
> of memdc, created by a call to CreateCompatibleDC(), and redirects calls 
> to GetDIBColorTable() to use the original DC instead of memdc. Intends 
> to fix bug #6439. Now with patch.

This can't work, since the bitmap needs to be selected into the dc for
GetDIBColorTable to succeed and you're not allow to call GetDIBits
with the bitmap selected into the dc...

Huw Davies
huw at

More information about the wine-devel mailing list