Author: jimtabor Date: Mon May 26 15:36:38 2008 New Revision: 33719
URL: http://svn.reactos.org/svn/reactos?rev=33719&view=rev Log: Why are we deleting prgnVis after setting it up? Wine code shows that it is deleted after an error if it was setup prior the error. This fixes a bug introduced in revision 5118.
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/obj... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/objects/dc.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/objects/dc.c [iso-8859-1] Mon May 26 15:36:38 2008 @@ -1,4 +1,3 @@ - /* * ReactOS W32 Subsystem * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 ReactOS Team @@ -152,13 +151,12 @@ DC_UnlockDc(NewDC); DC_UnlockDc(OrigDC); if (NULL != DisplayDC) - { - NtGdiDeleteObjectApp(DisplayDC); - } + { + NtGdiDeleteObjectApp(DisplayDC); + }
hVisRgn = NtGdiCreateRectRgn(0, 0, 1, 1); IntGdiSelectVisRgn(hNewDC, hVisRgn); - NtGdiDeleteObject(hVisRgn); if (Layout) NtGdiSetLayout( hNewDC, -1, Layout);
DC_InitDC(hNewDC);