mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
Default bitmap is not subject to reference counting.
This commit is contained in:
parent
9947b68c3e
commit
e8829c01e6
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user