Changeset 24282 in vbox for trunk/src/VBox/VMM/PDMDevHlp.cpp
- Timestamp:
- Nov 3, 2009 10:14:35 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PDMDevHlp.cpp
r24141 r24282 847 847 */ 848 848 int rc; 849 char szNode[48]; 850 RTStrPrintf(szNode, sizeof(szNode), "LUN#%d", iLun); 851 PCFGMNODE pNode = CFGMR3GetChild(pDevIns->Internal.s.pCfgHandle, szNode); 849 PCFGMNODE pNode = CFGMR3GetChildF(pDevIns->Internal.s.pCfgHandle, "LUN#%u", iLun); 852 850 if (pNode) 853 851 { … … 860 858 */ 861 859 PPDMDRV pDrv = pdmR3DrvLookup(pVM, pszName); 862 if (pDrv) 860 if ( pDrv 861 && pDrv->cInstances < pDrv->pDrvReg->cMaxInstances) 863 862 { 864 863 /* config node */ … … 930 929 else 931 930 AssertMsgFailed(("Failed to create Config node! rc=%Rrc\n", rc)); 931 } 932 else if (pDrv) 933 { 934 AssertMsgFailed(("Too many instances of driver '%s', max is %u\n", pszName, pDrv->pDrvReg->cMaxInstances)); 935 rc = VERR_PDM_TOO_MANY_DRIVER_INSTANCES; 932 936 } 933 937 else
Note:
See TracChangeset
for help on using the changeset viewer.