From d8b3f39eef2dee23ca90d8df900a5b74c34224ac Mon Sep 17 00:00:00 2001 From: James Tabor Date: Mon, 26 May 2008 21:12:17 +0000 Subject: [PATCH] Fix the rest too.... svn path=/trunk/; revision=33721 --- reactos/subsystems/win32/win32k/objects/dc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/reactos/subsystems/win32/win32k/objects/dc.c b/reactos/subsystems/win32/win32k/objects/dc.c index 684ec5b89b3..51e970852e2 100644 --- a/reactos/subsystems/win32/win32k/objects/dc.c +++ b/reactos/subsystems/win32/win32k/objects/dc.c @@ -842,7 +842,6 @@ IntGdiCreateDC(PUNICODE_STRING Driver, hVisRgn = NtGdiCreateRectRgn(0, 0, ((PGDIDEVICE)NewDC->pPDev)->GDIInfo.ulHorzRes, ((PGDIDEVICE)NewDC->pPDev)->GDIInfo.ulVertRes); IntGdiSelectVisRgn(hNewDC, hVisRgn); - NtGdiDeleteObject(hVisRgn); /* Initialize the DC state */ DC_InitDC(hNewDC); @@ -1994,7 +1993,6 @@ NtGdiSelectBitmap( hVisRgn = NtGdiCreateRectRgn(0, 0, pBmp->SurfObj.sizlBitmap.cx, pBmp->SurfObj.sizlBitmap.cy); BITMAPOBJ_UnlockBitmap(pBmp); IntGdiSelectVisRgn(hDC, hVisRgn); - NtGdiDeleteObject(hVisRgn); return hOrgBmp; }