[ros-diffs] [tkreuzer] 27315: co_UserRedrawWindow(): Don't use region after it was deleted -> hRgn = NULL

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Thu Jun 28 21:24:00 CEST 2007


Author: tkreuzer
Date: Thu Jun 28 23:23:59 2007
New Revision: 27315

URL: http://svn.reactos.org/svn/reactos?rev=27315&view=rev
Log:
co_UserRedrawWindow(): Don't use region after it was deleted -> hRgn = NULL

Modified:
    trunk/reactos/subsystems/win32/win32k/ntuser/painting.c

Modified: trunk/reactos/subsystems/win32/win32k/ntuser/painting.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/painting.c?rev=27315&r1=27314&r2=27315&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/painting.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/painting.c Thu Jun 28 23:23:59 2007
@@ -551,7 +551,10 @@
       {
          hRgn = NtGdiCreateRectRgn(0, 0, 0, 0);
          if (NtGdiCombineRgn(hRgn, UpdateRgn, NULL, RGN_COPY) == NULLREGION)
+         {
             NtGdiDeleteObject(hRgn);
+            hRgn = NULL;
+         }
          else
             NtGdiOffsetRgn(hRgn, Window->ClientRect.left, Window->ClientRect.top);
       }




More information about the Ros-diffs mailing list