ChangeLog: Have GetObjectType return OBJ_MEMDC instead of OBJ_DC when the DC is really a memory DC. It behaves that way on Windows. Warren Baird : Warren_Baird@cimmetry.com diff -ur clean/wine/objects/gdiobj.c wine/objects/gdiobj.c --- clean/wine/objects/gdiobj.c Wed Jan 29 15:31:13 2003 +++ wine/objects/gdiobj.c Fri Jan 31 14:51:03 2003 @@ -1026,6 +1026,15 @@ FIXME("Magic %04x not implemented\n", GDIMAGIC(ptr->wMagic) ); break; } + + if (result == OBJ_DC) { + // check if it is a memory DC + DC *dc = ptr; + if (dc->flags == DC_MEMORY) { + result = OBJ_MEMDC; + } + } + GDI_ReleaseObj( handle ); return result; }