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
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ HBITMAP X11DRV_BITMAP_SelectObject( DC * dc, HBITMAP hbitmap )
if (hbitmap == dc->hBitmap) return hbitmap; /* nothing to do */ if (hbitmap == dc->hBitmap) return hbitmap; /* nothing to do */
if (!(bmp = GDI_GetObjPtr( hbitmap, BITMAP_MAGIC ))) return 0; 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" ); WARN( "Bitmap already selected in another DC\n" );
GDI_ReleaseObj( hbitmap ); GDI_ReleaseObj( hbitmap );