mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 07:55:56 +00:00
[WIN32K]
- The pattern bitmap can get deleted during the GDI cleanup for process before the brush itself. - Gets rid of some of those pesky "GreDeleteObject: Trying to delete invalid object" debug prints. svn path=/trunk/; revision=73812
This commit is contained in:
parent
61d91cd9e8
commit
7db2f3af0f
1 changed files with 2 additions and 2 deletions
|
@ -62,8 +62,8 @@ BRUSH::~BRUSH(
|
||||||
GdiPoolFree(GetBrushAttrPool(), this->pBrushAttr);
|
GdiPoolFree(GetBrushAttrPool(), this->pBrushAttr);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Delete the pattern bitmap */
|
/* Delete the pattern bitmap (may have already been deleted during gdi cleanup) */
|
||||||
if (this->hbmPattern != NULL)
|
if (this->hbmPattern != NULL && GreIsHandleValid(this->hbmPattern))
|
||||||
{
|
{
|
||||||
GreSetBitmapOwner(this->hbmPattern, BASEOBJECT::OWNER::POWNED);
|
GreSetBitmapOwner(this->hbmPattern, BASEOBJECT::OWNER::POWNED);
|
||||||
GreDeleteObject(this->hbmPattern);
|
GreDeleteObject(this->hbmPattern);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue