Changeset 73724 in vbox for trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDispIf.cpp
- Timestamp:
- Aug 16, 2018 6:54:12 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDispIf.cpp
r72618 r73724 1705 1705 VBOXDISPIF_OP Op; 1706 1706 DWORD winEr = ERROR_SUCCESS; 1707 uint32_t i d;1707 uint32_t i; 1708 1708 int iPath; 1709 1709 1710 1710 vboxDispIfOpBegin(pIf, &Op); 1711 1711 1712 for (i d = 0; id < cDispDef; ++id)1713 { 1714 pDispDef = &paDispDef[i d];1712 for (i = 0; i < cDispDef; ++i) 1713 { 1714 pDispDef = &paDispDef[i]; 1715 1715 1716 1716 if (!(pDispDef->fDisplayFlags & VMMDEV_DISPLAY_DISABLED) && … … 1723 1723 Size.cy = pDispDef->cy; 1724 1724 1725 vboxDispIfUpdateModesWDDM(&Op, id, &Size);1725 vboxDispIfUpdateModesWDDM(&Op, pDispDef->idDisplay, &Size); 1726 1726 } 1727 1727 } … … 1733 1733 vboxDispIfWddmDcCreate(&DispCfg, QDC_ALL_PATHS); 1734 1734 1735 for (i d = 0; id < cDispDef; ++id)1735 for (i = 0; i < cDispDef; ++i) 1736 1736 { 1737 1737 DISPLAYCONFIG_PATH_INFO *pPathInfo; 1738 1738 1739 pDispDef = &paDispDef[i d];1740 iPath = vboxDispIfWddmDcSearchPath(&DispCfg, id, id);1739 pDispDef = &paDispDef[i]; 1740 iPath = vboxDispIfWddmDcSearchPath(&DispCfg, pDispDef->idDisplay, pDispDef->idDisplay); 1741 1741 1742 1742 if (iPath < 0) 1743 1743 { 1744 WARN(("VBoxTray:(WDDM) Unexpected iPath(%d) between src(%d) and tgt(%d)\n", iPath, id, id));1744 WARN(("VBoxTray:(WDDM) Unexpected iPath(%d) between src(%d) and tgt(%d)\n", iPath, pDispDef->idDisplay, pDispDef->idDisplay)); 1745 1745 continue; 1746 1746 } … … 1827 1827 1828 1828 *pPathInfo = DispCfg.pPathInfoArray[0]; 1829 pPathInfo->sourceInfo.id = id;1830 pPathInfo->targetInfo.id = id;1829 pPathInfo->sourceInfo.id = pDispDef->idDisplay; 1830 pPathInfo->targetInfo.id = pDispDef->idDisplay; 1831 1831 1832 1832 pModeInfoNew = &pModeInfo[DispCfg.cModeInfoArray]; 1833 1833 pModeInfoNew->infoType = DISPLAYCONFIG_MODE_INFO_TYPE_SOURCE; 1834 pModeInfoNew->id = id;1834 pModeInfoNew->id = pDispDef->idDisplay; 1835 1835 pModeInfoNew->adapterId = pModeInfo[0].adapterId; 1836 1836 pSrcMode = &pModeInfoNew->sourceMode; … … 1844 1844 pModeInfoNew++; 1845 1845 pModeInfoNew->infoType = DISPLAYCONFIG_MODE_INFO_TYPE_TARGET; 1846 pModeInfoNew->id = id;1846 pModeInfoNew->id = pDispDef->idDisplay; 1847 1847 pModeInfoNew->adapterId = pModeInfo[0].adapterId; 1848 1848 pModeInfoNew->targetMode = pModeInfo[0].targetMode;
Note:
See TracChangeset
for help on using the changeset viewer.