Changeset 24282 in vbox for trunk/src/VBox/VMM/PDMDriver.cpp
- Timestamp:
- Nov 3, 2009 10:14:35 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 54262
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PDMDriver.cpp
r23915 r24282 510 510 PVM pVM = pDrvIns->Internal.s.pVM; 511 511 PPDMDRV pDrv = pdmR3DrvLookup(pVM, pszName); 512 if (pDrv) 512 if ( pDrv 513 && pDrv->cInstances < pDrv->pDrvReg->cMaxInstances) 513 514 { 514 515 /* config node */ … … 579 580 else 580 581 AssertMsgFailed(("Failed to create Config node! rc=%Rrc\n", rc)); 582 } 583 else if (pDrv) 584 { 585 AssertMsgFailed(("Too many instances of driver '%s', max is %u\n", pszName, pDrv->pDrvReg->cMaxInstances)); 586 rc = VERR_PDM_TOO_MANY_DRIVER_INSTANCES; 581 587 } 582 588 else
Note:
See TracChangeset
for help on using the changeset viewer.