Changeset 13696 in vbox for trunk/src/VBox/Main/MachineImpl.cpp
- Timestamp:
- Oct 30, 2008 9:58:59 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineImpl.cpp
r13638 r13696 3834 3834 #if defined (RT_OS_WINDOWS) 3835 3835 bool Machine::isSessionOpen (ComObjPtr <SessionMachine> &aMachine, 3836 HANDLE *aIPCSem /*= NULL*/) 3836 HANDLE *aIPCSem /*= NULL*/, 3837 bool aAllowClosing /*= false*/) 3837 3838 #elif defined (RT_OS_OS2) 3838 3839 bool Machine::isSessionOpen (ComObjPtr <SessionMachine> &aMachine, 3839 HMTX *aIPCSem /*= NULL*/); 3840 HMTX *aIPCSem /*= NULL*/, 3841 bool aAllowClosing /*= false*/); 3840 3842 #else 3841 bool Machine::isSessionOpen (ComObjPtr <SessionMachine> &aMachine) 3843 bool Machine::isSessionOpen (ComObjPtr <SessionMachine> &aMachine, 3844 bool aAllowClosing /*= false*/) 3842 3845 #endif 3843 3846 { … … 3851 3854 AutoReadLock alock (this); 3852 3855 3853 if (mData->mSession.mState == SessionState_Open) 3856 if (mData->mSession.mState == SessionState_Open || 3857 (aAllowClosing && mData->mSession.mState == SessionState_Closing)) 3854 3858 { 3855 3859 AssertReturn (!mData->mSession.mMachine.isNull(), false);
Note:
See TracChangeset
for help on using the changeset viewer.