Removed unused DeviceDriver. Fix behavior for dcattr.

svn path=/trunk/; revision=30371
This commit is contained in:
James Tabor 2007-11-12 03:22:12 +00:00
parent cd2962c5b8
commit a990ff1e0a
2 changed files with 1 additions and 2 deletions

View file

@ -513,7 +513,6 @@ typedef struct _DC
HDEV GDIDevice; // Should be PDev or pPDev?
DRIVER_FUNCTIONS DriverFunctions; // In GDIDEVICE
UNICODE_STRING DriverName;
HANDLE DeviceDriver; // ?DHPDEV?
CLIPOBJ *CombinedClip;

View file

@ -218,7 +218,6 @@ NtGdiCreateCompatibleDC(HDC hDC)
NewDC->w.bitsPerPixel = OrigDC->w.bitsPerPixel;
/* DriverName is copied in the AllocDC routine */
NewDC->DeviceDriver = OrigDC->DeviceDriver;
NewDC->Dc_Attr.ptlWindowOrg.x = OrigDC->Dc_Attr.ptlWindowOrg.x;
NewDC->Dc_Attr.ptlWindowOrg.y = OrigDC->Dc_Attr.ptlWindowOrg.y;
NewDC->Dc_Attr.szlWindowExt.cx = OrigDC->Dc_Attr.szlWindowExt.cx;
@ -2534,6 +2533,7 @@ DC_FreeDcAttr(HDC DCToFree )
PDC pDC = DC_LockDc(DCToFree);
if (pDC->pDc_Attr == &pDC->Dc_Attr) return; // Internal DC object!
pDC->pDc_Attr = NULL;
// pDC->pDc_Attr = &pDC->Dc_Attr; // Correct behavior.
DC_UnlockDc(pDC);
KeEnterCriticalRegion();