Fix the rest too....

svn path=/trunk/; revision=33721
This commit is contained in:
James Tabor 2008-05-26 21:12:17 +00:00
parent 92d954c542
commit d8b3f39eef

View file

@ -842,7 +842,6 @@ IntGdiCreateDC(PUNICODE_STRING Driver,
hVisRgn = NtGdiCreateRectRgn(0, 0, ((PGDIDEVICE)NewDC->pPDev)->GDIInfo.ulHorzRes, hVisRgn = NtGdiCreateRectRgn(0, 0, ((PGDIDEVICE)NewDC->pPDev)->GDIInfo.ulHorzRes,
((PGDIDEVICE)NewDC->pPDev)->GDIInfo.ulVertRes); ((PGDIDEVICE)NewDC->pPDev)->GDIInfo.ulVertRes);
IntGdiSelectVisRgn(hNewDC, hVisRgn); IntGdiSelectVisRgn(hNewDC, hVisRgn);
NtGdiDeleteObject(hVisRgn);
/* Initialize the DC state */ /* Initialize the DC state */
DC_InitDC(hNewDC); DC_InitDC(hNewDC);
@ -1994,7 +1993,6 @@ NtGdiSelectBitmap(
hVisRgn = NtGdiCreateRectRgn(0, 0, pBmp->SurfObj.sizlBitmap.cx, pBmp->SurfObj.sizlBitmap.cy); hVisRgn = NtGdiCreateRectRgn(0, 0, pBmp->SurfObj.sizlBitmap.cx, pBmp->SurfObj.sizlBitmap.cy);
BITMAPOBJ_UnlockBitmap(pBmp); BITMAPOBJ_UnlockBitmap(pBmp);
IntGdiSelectVisRgn(hDC, hVisRgn); IntGdiSelectVisRgn(hDC, hVisRgn);
NtGdiDeleteObject(hVisRgn);
return hOrgBmp; return hOrgBmp;
} }