- Timestamp:
- Mar 31, 2009 4:50:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ApplianceImpl.cpp
r18535 r18583 3689 3689 AutoWriteLock alock(this); 3690 3690 3691 com::SafeArray<IN_BSTR> aVboxValues(ComSafeArrayInArg(argVboxValues)); 3692 com::SafeArray<IN_BSTR> aExtraConfigValues(ComSafeArrayInArg(argExtraConfigValues)); 3693 3694 if ( (aVboxValues.size() != m->llDescriptions.size()) 3695 || (aExtraConfigValues.size() != m->llDescriptions.size()) 3691 com::SafeArray<BOOL> sfaEnabled(ComSafeArrayInArg(aEnabled)); 3692 com::SafeArray<IN_BSTR> sfaVboxValues(ComSafeArrayInArg(argVboxValues)); 3693 com::SafeArray<IN_BSTR> sfaExtraConfigValues(ComSafeArrayInArg(argExtraConfigValues)); 3694 3695 if ( (sfaEnabled.size() != m->llDescriptions.size()) 3696 || (sfaVboxValues.size() != m->llDescriptions.size()) 3697 || (sfaExtraConfigValues.size() != m->llDescriptions.size()) 3696 3698 ) 3697 3699 return E_INVALIDARG; … … 3705 3707 VirtualSystemDescriptionEntry& vsde = *it; 3706 3708 3707 if ( aEnabled[i])3709 if (sfaEnabled[i]) 3708 3710 { 3709 vsde.strVbox = aVboxValues[i];3710 vsde.strExtraConfig = aExtraConfigValues[i];3711 vsde.strVbox = sfaVboxValues[i]; 3712 vsde.strExtraConfig = sfaExtraConfigValues[i]; 3711 3713 } 3712 3714 else … … 4193 4195 // finally, add the virtual system to the appliance 4194 4196 Appliance *pAppliance = static_cast<Appliance*>(aAppliance); 4195 AutoCaller autoCaller (pAppliance);4196 if (FAILED(rc)) throw rc;4197 AutoCaller autoCaller1(pAppliance); 4198 CheckComRCReturnRC(autoCaller1.rc()); 4197 4199 4198 4200 /* We return the new description to the caller */
Note:
See TracChangeset
for help on using the changeset viewer.