mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 17:51:40 +00:00
[WIN32SS:ENG] Fix check to enable panning driver
If ldevtype is not LDEV_DEVICE_DISPLAY, pdm is really a PMDEVOBJ structure. So, we must not read the dmFields value.
This commit is contained in:
parent
c699471994
commit
0743ceefa2
1 changed files with 2 additions and 2 deletions
|
@ -562,8 +562,8 @@ PDEVOBJ_Create(
|
|||
ppdev->dwAccelerationLevel = dwAccelerationLevel;
|
||||
|
||||
/* Copy the function table */
|
||||
if ((ldevtype == LDEV_DEVICE_DISPLAY && dwAccelerationLevel >= 5) ||
|
||||
pdm->dmFields & (DM_PANNINGWIDTH | DM_PANNINGHEIGHT))
|
||||
if (ldevtype == LDEV_DEVICE_DISPLAY && (dwAccelerationLevel >= 5 ||
|
||||
pdm->dmFields & (DM_PANNINGWIDTH | DM_PANNINGHEIGHT)))
|
||||
{
|
||||
ULONG i;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue