[ros-diffs] [tkreuzer] 38501: 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.

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Thu Jan 1 23:13:07 CET 2009


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/objects/dc.c?rev=38501&r1=38500&r2=38501&view=diff
==============================================================================
--- 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;
 



More information about the Ros-diffs mailing list