Fix implementation of DevicePropertiesA/W to show extended pages

svn path=/trunk/; revision=29232
This commit is contained in:
Thomas Bluemel 2007-09-27 03:04:52 +00:00
parent 1f14f9be20
commit 96186bac97
2 changed files with 5 additions and 5 deletions

View file

@ -1813,10 +1813,10 @@ DevicePropertiesExW(IN HWND hWndParent OPTIONAL,
{
INT_PTR Ret = -1;
if (dwFlags & ~(DPF_UNKNOWN | DPF_DEVICE_STATUS_ACTION))
if (dwFlags & ~(DPF_EXTENDED | DPF_DEVICE_STATUS_ACTION))
{
DPRINT1("DevPropertiesExW: Invalid flags: 0x%x\n",
dwFlags & ~(DPF_UNKNOWN | DPF_DEVICE_STATUS_ACTION));
dwFlags & ~(DPF_EXTENDED | DPF_DEVICE_STATUS_ACTION));
SetLastError(ERROR_INVALID_FLAGS);
return -1;
}
@ -1907,7 +1907,7 @@ DevicePropertiesA(HWND hWndParent,
return DevicePropertiesExA(hWndParent,
lpMachineName,
lpDeviceID,
0,
DPF_EXTENDED,
bShowDevMgr);
}
@ -1944,7 +1944,7 @@ DevicePropertiesW(HWND hWndParent,
return DevicePropertiesExW(hWndParent,
lpMachineName,
lpDeviceID,
0,
DPF_EXTENDED,
bShowDevMgr);
}

View file

@ -137,7 +137,7 @@ DeviceCreateHardwarePageEx(IN HWND hWndParent,
IN UINT uNumberOfGuids,
IN HWPAGE_DISPLAYMODE DisplayMode);
#define DPF_UNKNOWN (0x1)
#define DPF_EXTENDED (0x1)
#define DPF_DEVICE_STATUS_ACTION (0x2)
INT_PTR