Default bitmap is not subject to reference counting.

This commit is contained in:
Gerard Patel 2001-08-21 17:03:39 +00:00 committed by Alexandre Julliard
parent 9947b68c3e
commit e8829c01e6

View File

@ -73,7 +73,7 @@ HBITMAP X11DRV_BITMAP_SelectObject( DC * dc, HBITMAP hbitmap )
if (hbitmap == dc->hBitmap) return hbitmap; /* nothing to do */
if (!(bmp = GDI_GetObjPtr( hbitmap, BITMAP_MAGIC ))) return 0;
if (bmp->header.dwCount)
if (bmp->header.dwCount && (hbitmap != GetStockObject(DEFAULT_BITMAP)))
{
WARN( "Bitmap already selected in another DC\n" );
GDI_ReleaseObj( hbitmap );