https://bugs.winehq.org/show_bug.cgi?id=51570
--- Comment #3 from Jacek Caban jacek@codeweavers.com --- I guess that's because we check handle type before converting them to full handles. I think that we should make HDC_32 properly convert handles instead of doing that in gdi32. It should be doable now with GDI_SHARED_MEMORY, I will look at it.