Changeset 11183 in vbox for trunk/src/VBox/Devices/Storage/DevATA.cpp
- Timestamp:
- Aug 6, 2008 4:53:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevATA.cpp
r11161 r11183 5532 5532 N_("PIIX3 configuration error: unknown option specified")); 5533 5533 5534 rc = CFGMR3QueryBool(pCfgHandle, "GCEnabled", &fGCEnabled); 5535 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 5536 fGCEnabled = true; 5537 else if (VBOX_FAILURE(rc)) 5534 rc = CFGMR3QueryBoolDef(pCfgHandle, "GCEnabled", &fGCEnabled, true); 5535 if (VBOX_FAILURE(rc)) 5538 5536 return PDMDEV_SET_ERROR(pDevIns, rc, 5539 5537 N_("PIIX3 configuration error: failed to read GCEnabled as boolean")); 5540 5538 Log(("%s: fGCEnabled=%d\n", __FUNCTION__, fGCEnabled)); 5541 5539 5542 rc = CFGMR3QueryBool(pCfgHandle, "R0Enabled", &fR0Enabled); 5543 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 5544 fR0Enabled = true; 5545 else if (VBOX_FAILURE(rc)) 5540 rc = CFGMR3QueryBoolDef(pCfgHandle, "R0Enabled", &fR0Enabled, true); 5541 if (VBOX_FAILURE(rc)) 5546 5542 return PDMDEV_SET_ERROR(pDevIns, rc, 5547 5543 N_("PIIX3 configuration error: failed to read R0Enabled as boolean")); 5548 5544 Log(("%s: fR0Enabled=%d\n", __FUNCTION__, fR0Enabled)); 5549 5545 5550 rc = CFGMR3QueryU32(pCfgHandle, "IRQDelay", &DelayIRQMillies); 5551 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 5552 DelayIRQMillies = 0; 5553 else if (VBOX_FAILURE(rc)) 5546 rc = CFGMR3QueryU32Def(pCfgHandle, "IRQDelay", &DelayIRQMillies, 0); 5547 if (VBOX_FAILURE(rc)) 5554 5548 return PDMDEV_SET_ERROR(pDevIns, rc, 5555 5549 N_("PIIX3 configuration error: failed to read IRQDelay as integer")); … … 5557 5551 Assert(DelayIRQMillies < 50); 5558 5552 5559 rc = CFGMR3QueryBool(pCfgHandle, "PIIX4", &pData->fPIIX4); 5560 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 5561 pData->fPIIX4 = false; 5562 else if (VBOX_FAILURE(rc)) 5553 rc = CFGMR3QueryBoolDef(pCfgHandle, "PIIX4", &pData->fPIIX4, false); 5554 if (VBOX_FAILURE(rc)) 5563 5555 return PDMDEV_SET_ERROR(pDevIns, rc, 5564 5556 N_("PIIX3 configuration error: failed to read PIIX4 as boolean"));
Note:
See TracChangeset
for help on using the changeset viewer.