mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 16:36:11 +00:00
[WIN32K]
- Don't try to delete the pattern bitmap in UserInitialize. - Set the correct owner before deleting the update region in co_UserFreeWindow. - Fixes some "Trying to delete global object" debug prints. svn path=/trunk/; revision=73855
This commit is contained in:
parent
ef483f95f7
commit
ca4c2640e7
|
@ -154,9 +154,8 @@ UserInitialize(VOID)
|
||||||
if (hPattern55AABitmap == NULL)
|
if (hPattern55AABitmap == NULL)
|
||||||
return STATUS_INSUFFICIENT_RESOURCES;
|
return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
|
|
||||||
//NT_VERIFY(GreSetBitmapOwner(hPattern55AABitmap, GDI_OBJ_HMGR_PUBLIC));
|
|
||||||
gpsi->hbrGray = IntGdiCreatePatternBrush(hPattern55AABitmap);
|
gpsi->hbrGray = IntGdiCreatePatternBrush(hPattern55AABitmap);
|
||||||
GreDeleteObject(hPattern55AABitmap);
|
|
||||||
if (gpsi->hbrGray == NULL)
|
if (gpsi->hbrGray == NULL)
|
||||||
return STATUS_INSUFFICIENT_RESOURCES;
|
return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
}
|
}
|
||||||
|
|
|
@ -602,6 +602,7 @@ LRESULT co_UserFreeWindow(PWND Window,
|
||||||
MsqDecPaintCountQueue(Window->head.pti);
|
MsqDecPaintCountQueue(Window->head.pti);
|
||||||
if (Window->hrgnUpdate > HRGN_WINDOW && GreIsHandleValid(Window->hrgnUpdate))
|
if (Window->hrgnUpdate > HRGN_WINDOW && GreIsHandleValid(Window->hrgnUpdate))
|
||||||
{
|
{
|
||||||
|
IntGdiSetRegionOwner(Window->hrgnUpdate, GDI_OBJ_HMGR_POWNED);
|
||||||
GreDeleteObject(Window->hrgnUpdate);
|
GreDeleteObject(Window->hrgnUpdate);
|
||||||
}
|
}
|
||||||
Window->hrgnUpdate = NULL;
|
Window->hrgnUpdate = NULL;
|
||||||
|
|
Loading…
Reference in a new issue