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/ntu... ============================================================================== --- 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); }