Flush the gdi batch in NtGdiDeletObjectApp to make sure we don't try to do stuff with deleted objects later. This fixes some problems with Firefox.

svn path=/trunk/; revision=38501
This commit is contained in:
Timo Kreuzer 2009-01-01 22:13:07 +00:00
parent fbd7f8a2aa
commit 9c19a9af87

View file

@ -1090,6 +1090,8 @@ BOOL
APIENTRY
NtGdiDeleteObjectApp(HANDLE DCHandle)
{
/* Complete all pending operations */
NtGdiFlushUserBatch();
if (GDI_HANDLE_IS_STOCKOBJ(DCHandle)) return TRUE;