Author: tkreuzer
Date: Thu Jan 1 16:13:07 2009
New Revision: 38501
URL:
http://svn.reactos.org/svn/reactos?rev=38501&view=rev
Log:
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.
Modified:
trunk/reactos/subsystems/win32/win32k/objects/dc.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/dc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dc.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dc.c [iso-8859-1] Thu Jan 1 16:13:07
2009
@@ -1090,6 +1090,8 @@
APIENTRY
NtGdiDeleteObjectApp(HANDLE DCHandle)
{
+ /* Complete all pending operations */
+ NtGdiFlushUserBatch();
if (GDI_HANDLE_IS_STOCKOBJ(DCHandle)) return TRUE;