Changeset 6440 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jan 22, 2008 1:35:10 PM (17 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r6400 r6440 883 883 AssertRC (vrc); 884 884 885 vrc = SSMR3PutBool (pSSM, folder->writable());885 vrc = SSMR3PutBool (pSSM, !!folder->writable()); 886 886 AssertRC (vrc); 887 887 } -
trunk/src/VBox/Main/MachineImpl.cpp
r6384 r6440 2959 2959 if (SUCCEEDED (rc)) 2960 2960 { 2961 /* memorize the direct session control */2961 /* memorize the direct session control and cache IUnknown for it */ 2962 2962 mData->mSession.mDirectControl = aControl; 2963 mData->mSession.mDirectControlUnk = aControl; 2963 2964 mData->mSession.mState = SessionState_SessionOpen; 2964 2965 /* associate the SessionMachine with this Machine */ … … 5663 5664 folderNode.setValue <Bstr> ("name", folder->name()); 5664 5665 folderNode.setValue <Bstr> ("hostPath", folder->hostPath()); 5665 folderNode.setValue <bool> ("writable", folder->writable());5666 folderNode.setValue <bool> ("writable", !!folder->writable()); 5666 5667 } 5667 5668 } … … 7305 7306 7306 7307 if (aReason != Uninit::Normal) 7308 { 7307 7309 mData->mSession.mDirectControl.setNull(); 7310 mData->mSession.mDirectControlUnk.setNull(); 7311 } 7308 7312 else 7309 7313 { … … 7531 7535 AutoMultiLock <2> alock (mParent->wlock(), this->wlock()); 7532 7536 7533 if (control.equalsTo (mData->mSession.mDirectControl ))7537 if (control.equalsTo (mData->mSession.mDirectControlUnk)) 7534 7538 { 7535 7539 ComAssertRet (aProgress, E_POINTER); … … 7545 7549 /* set direct control to NULL to release the remote instance */ 7546 7550 mData->mSession.mDirectControl.setNull(); 7551 mData->mSession.mDirectControlUnk.setNull(); 7547 7552 LogFlowThisFunc (("Direct control is set to NULL\n")); 7548 7553 -
trunk/src/VBox/Main/include/MachineImpl.h
r6384 r6440 103 103 /** Control of the direct session opened by openSession() */ 104 104 ComPtr <IInternalSessionControl> mDirectControl; 105 /** Cached IUnknown of mDirectControl (IPC) for fast comparison */ 106 ComPtr <IUnknown> mDirectControlUnk; 105 107 106 108 typedef std::list <ComPtr <IInternalSessionControl> > RemoteControlList;
Note:
See TracChangeset
for help on using the changeset viewer.