VirtualBox

Changeset 36451 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Mar 28, 2011 7:40:52 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70821
Message:

introduced VirtualBoxBase::clearError to clear the previous error info if MultiResult is used

Location:
trunk/src/VBox/Main/src-server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/HostImpl.cpp

    r36128 r36451  
    754754    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    755755
    756     MultiResult rc = checkUSBProxyService();
     756    HRESULT rc = checkUSBProxyService();
    757757    if (FAILED(rc)) return rc;
    758758
     
    781781    AutoMultiWriteLock2 alock(this->lockHandle(), &m->usbListsLock COMMA_LOCKVAL_SRC_POS);
    782782
    783     MultiResult rc = checkUSBProxyService();
     783    HRESULT rc = checkUSBProxyService();
    784784    if (FAILED(rc)) return rc;
    785785
     
    11961196    AutoMultiWriteLock2 alock(this->lockHandle(), &m->usbListsLock COMMA_LOCKVAL_SRC_POS);
    11971197
     1198    clearError();
    11981199    MultiResult rc = checkUSBProxyService();
    11991200    if (FAILED(rc)) return rc;
     
    12571258    AutoMultiWriteLock2 alock(this->lockHandle(), &m->usbListsLock COMMA_LOCKVAL_SRC_POS);
    12581259
     1260    clearError();
    12591261    MultiResult rc = checkUSBProxyService();
    12601262    if (FAILED(rc)) return rc;
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r36411 r36451  
    22032203    AutoCaller autoCaller(this);
    22042204    if (FAILED(autoCaller.rc())) return autoCaller.rc();
     2205
     2206    clearError();
    22052207    MultiResult rc(S_OK);
    22062208
     
    1092410926#ifdef VBOX_WITH_USB
    1092510927    /* if captureDeviceForVM() fails, it must have set extended error info */
     10928    clearError();
    1092610929    MultiResult rc = mParent->host()->checkUSBProxyService();
    1092710930    if (FAILED(rc)) return rc;
     
    1198111984    AssertReturn(mData->mSession.mLockedMedia.IsEmpty(), E_FAIL);
    1198211985
     11986    clearError();
    1198311987    MultiResult mrc(S_OK);
    1198411988
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette