Changeset 98100 in vbox
- Timestamp:
- Jan 17, 2023 10:56:32 AM (23 months ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r98097 r98100 5084 5084 if (fHotplug) 5085 5085 { 5086 USBStorageDevice UsbMsd = USBStorageDevice();5086 USBStorageDevice UsbMsd; 5087 5087 RTUuidCreate(&UsbMsd.mUuid); 5088 5088 UsbMsd.iPort = uInstance; -
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r98035 r98100 3873 3873 3874 3874 bool fSilent = false; 3875 Utf8Str strReconfig;3876 3875 3877 3876 /* Check whether the flag to allow silent storage attachment reconfiguration is set. */ 3878 strReconfig = i_getExtraData(Utf8Str("VBoxInternal2/SilentReconfigureWhilePaused"));3877 Utf8Str const strReconfig = i_getExtraData(Utf8Str("VBoxInternal2/SilentReconfigureWhilePaused")); 3879 3878 if ( mData->mMachineState == MachineState_Paused 3880 3879 && strReconfig == "1") … … 3900 3899 3901 3900 /* check if the device slot is already busy */ 3902 MediumAttachment *pAttachTemp ;3903 if ((pAttachTemp = i_findAttachment(*mMediumAttachments.data(),3904 aName,3905 aControllerPort,3906 aDevice)))3901 MediumAttachment *pAttachTemp = i_findAttachment(*mMediumAttachments.data(), 3902 aName, 3903 aControllerPort, 3904 aDevice); 3905 if (pAttachTemp) 3907 3906 { 3908 3907 Medium *pMedium = pAttachTemp->i_getMedium(); … … 3932 3931 AutoWriteLock mediumLock(medium COMMA_LOCKVAL_SRC_POS); 3933 3932 3934 if ( (pAttachTemp = i_findAttachment(*mMediumAttachments.data(), medium)) 3933 pAttachTemp = i_findAttachment(*mMediumAttachments.data(), medium); 3934 if ( pAttachTemp 3935 3935 && !medium.isNull() 3936 3936 && ( medium->i_getType() != MediumType_Readonly … … 3986 3986 * changing attachments in which case the attachment just needs to 3987 3987 * be restored */ 3988 if ((pAttachTemp = i_findAttachment(oldAtts, medium))) 3988 pAttachTemp = i_findAttachment(oldAtts, medium); 3989 if (pAttachTemp) 3989 3990 { 3990 3991 AssertReturn(!fIndirect, E_FAIL); -
trunk/src/VBox/Main/src-server/MediumLock.cpp
r96407 r98100 298 298 299 299 HRESULT MediumLockListMap::Insert(const ComObjPtr<MediumAttachment> &aMediumAttachment, 300 MediumLockList *aMediumLockList)300 MediumLockList *aMediumLockList) 301 301 { 302 302 if (mIsLocked) … … 307 307 308 308 HRESULT MediumLockListMap::ReplaceKey(const ComObjPtr<MediumAttachment> &aMediumAttachmentOld, 309 const ComObjPtr<MediumAttachment> &aMediumAttachmentNew)309 const ComObjPtr<MediumAttachment> &aMediumAttachmentNew) 310 310 { 311 311 MediumLockListMap::Base::iterator it = mMediumLocks.find(aMediumAttachmentOld);
Note:
See TracChangeset
for help on using the changeset viewer.