[GDI] Windows puts DeviceObject to hSpooler field when it is graphics device. CORE-7733 CORE-4490

svn path=/trunk/; revision=74169
This commit is contained in:
Sebastian Gasiorek 2017-03-14 19:13:19 +00:00
parent 6231da678b
commit 7797dd6fcc
2 changed files with 5 additions and 1 deletions

View file

@ -359,6 +359,10 @@ EngpCreatePDEV(
ppdev->pfnMovePointer = EngMovePointer;
ppdev->pGraphicsDevice = pGraphicsDevice;
// DxEngGetHdevData asks for Graphics DeviceObject in hSpooler field
ppdev->hSpooler = ppdev->pGraphicsDevice->DeviceObject;
// Should we change the ative mode of pGraphicsDevice ?
ppdev->pdmwDev = PDEVOBJ_pdmMatchDevMode(ppdev, pdm) ;

View file

@ -123,7 +123,7 @@ typedef struct _PDEVOBJ
DEVINFO devinfo;
GDIINFO gdiinfo;
PSURFACE pSurface; /* SURFACE for this device. */
// HANDLE hSpooler; /* Handle to spooler, if spooler dev driver. */
HANDLE hSpooler; /* Handle to spooler, if spooler dev driver, DeviceObject if graphics device */
// PVOID pDesktopId;
PGRAPHICS_DEVICE pGraphicsDevice;
POINTL ptlOrigion;