Changeset 36451 in vbox for trunk/src/VBox/Main
- Timestamp:
- Mar 28, 2011 7:40:52 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70821
- Location:
- trunk/src/VBox/Main
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/VirtualBoxBase.h
r36439 r36451 749 749 bool aWarning, 750 750 bool aLogIt); 751 static void clearError(void); 751 752 752 753 HRESULT setError(HRESULT aResultCode, const char *pcsz, ...); -
trunk/src/VBox/Main/src-all/VirtualBoxBase.cpp
r35911 r36451 510 510 } 511 511 512 /** 513 * Clear the current error information. 514 */ 515 /*static*/ 516 void VirtualBoxBase::clearError(void) 517 { 518 #if !defined(VBOX_WITH_XPCOM) 519 ::SetErrorInfo (0, NULL); 520 #else 521 HRESULT rc = S_OK; 522 nsCOMPtr <nsIExceptionService> es; 523 es = do_GetService(NS_EXCEPTIONSERVICE_CONTRACTID, &rc); 524 if (NS_SUCCEEDED(rc)) 525 { 526 nsCOMPtr <nsIExceptionManager> em; 527 rc = es->GetCurrentExceptionManager (getter_AddRefs (em)); 528 if (SUCCEEDED(rc)) 529 em->SetCurrentException(NULL); 530 } 531 #endif 532 } 533 534 512 535 //////////////////////////////////////////////////////////////////////////////// 513 536 // -
trunk/src/VBox/Main/src-server/HostImpl.cpp
r36128 r36451 754 754 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 755 755 756 MultiResultrc = checkUSBProxyService();756 HRESULT rc = checkUSBProxyService(); 757 757 if (FAILED(rc)) return rc; 758 758 … … 781 781 AutoMultiWriteLock2 alock(this->lockHandle(), &m->usbListsLock COMMA_LOCKVAL_SRC_POS); 782 782 783 MultiResultrc = checkUSBProxyService();783 HRESULT rc = checkUSBProxyService(); 784 784 if (FAILED(rc)) return rc; 785 785 … … 1196 1196 AutoMultiWriteLock2 alock(this->lockHandle(), &m->usbListsLock COMMA_LOCKVAL_SRC_POS); 1197 1197 1198 clearError(); 1198 1199 MultiResult rc = checkUSBProxyService(); 1199 1200 if (FAILED(rc)) return rc; … … 1257 1258 AutoMultiWriteLock2 alock(this->lockHandle(), &m->usbListsLock COMMA_LOCKVAL_SRC_POS); 1258 1259 1260 clearError(); 1259 1261 MultiResult rc = checkUSBProxyService(); 1260 1262 if (FAILED(rc)) return rc; -
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r36411 r36451 2203 2203 AutoCaller autoCaller(this); 2204 2204 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 2205 2206 clearError(); 2205 2207 MultiResult rc(S_OK); 2206 2208 … … 10924 10926 #ifdef VBOX_WITH_USB 10925 10927 /* if captureDeviceForVM() fails, it must have set extended error info */ 10928 clearError(); 10926 10929 MultiResult rc = mParent->host()->checkUSBProxyService(); 10927 10930 if (FAILED(rc)) return rc; … … 11981 11984 AssertReturn(mData->mSession.mLockedMedia.IsEmpty(), E_FAIL); 11982 11985 11986 clearError(); 11983 11987 MultiResult mrc(S_OK); 11984 11988
Note:
See TracChangeset
for help on using the changeset viewer.