mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:52:57 +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;
|
ppdev->dwAccelerationLevel = dwAccelerationLevel;
|
||||||
|
|
||||||
/* Copy the function table */
|
/* Copy the function table */
|
||||||
if ((ldevtype == LDEV_DEVICE_DISPLAY && dwAccelerationLevel >= 5) ||
|
if (ldevtype == LDEV_DEVICE_DISPLAY && (dwAccelerationLevel >= 5 ||
|
||||||
pdm->dmFields & (DM_PANNINGWIDTH | DM_PANNINGHEIGHT))
|
pdm->dmFields & (DM_PANNINGWIDTH | DM_PANNINGHEIGHT)))
|
||||||
{
|
{
|
||||||
ULONG i;
|
ULONG i;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue