Changeset 75730 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Nov 26, 2018 10:57:56 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/CloudProviderManagerImpl.cpp
r75667 r75730 164 164 for (unsigned i = 0; i < apProvidersFromCurrExtPack.size(); i++) 165 165 { 166 Assert(m_astrExtPackNames.size() == m_apCloudProviders.size()); 167 m_astrExtPackNames.push_back(strName); 168 m_apCloudProviders.push_back(apProvidersFromCurrExtPack[i]); 166 // Sanity check each cloud provider by forcing a QueryInterface call, 167 // making sure that it implements the right interface. 168 ComPtr<ICloudProvider> pTmpCP1(apProvidersFromCurrExtPack[i]); 169 if (!pTmpCP1.isNull()) 170 { 171 ComPtr<ICloudProvider> pTmpCP2; 172 pTmpCP1.queryInterfaceTo(pTmpCP2.asOutParam()); 173 if (!pTmpCP2.isNull()) 174 { 175 Assert(m_astrExtPackNames.size() == m_apCloudProviders.size()); 176 m_astrExtPackNames.push_back(strName); 177 m_apCloudProviders.push_back(apProvidersFromCurrExtPack[i]); 178 } 179 } 169 180 } 170 181 }
Note:
See TracChangeset
for help on using the changeset viewer.