Changeset 27304 in vbox
- Timestamp:
- Mar 11, 2010 8:21:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r27166 r27304 330 330 ComPtr<IGuestOSType> guestOSType; 331 331 hrc = virtualBox->GetGuestOSType(osTypeId, guestOSType.asOutParam()); H(); 332 333 Bstr guestTypeFamilyId; 334 hrc = guestOSType->COMGETTER(FamilyId)(guestTypeFamilyId.asOutParam()); H(); 335 BOOL fOsXGuest = guestTypeFamilyId == Bstr("MacOS"); 332 336 333 337 /* … … 392 396 } 393 397 394 if ( osTypeId == "MacOS")398 if (fOsXGuest) 395 399 { 396 400 /* 397 * Expose extended MWAIT features to Mac OS guests.401 * Expose extended MWAIT features to Mac OS X guests. 398 402 */ 399 403 LogRel(("Using MWAIT extensions\n")); … … 595 599 #endif 596 600 597 Bstr tmpStr2;598 hrc = guestOSType->COMGETTER(FamilyId)(tmpStr2.asOutParam()); H();599 601 /* 600 602 * Enable 3 following devices: HPET, SMC, LPC on MacOS X guests 601 603 */ 602 BOOL fExtProfile = tmpStr2 == Bstr("MacOS");604 BOOL fExtProfile = fOsXGuest; 603 605 604 606 /* … … 632 634 if (fSmcEnabled) 633 635 { 636 Bstr tmpStr2; 634 637 rc = CFGMR3InsertNode(pDevices, "smc", &pDev); RC_CHECK(); 635 638 rc = CFGMR3InsertNode(pDev, "0", &pInst); RC_CHECK();
Note:
See TracChangeset
for help on using the changeset viewer.