Changeset 47778 in vbox for trunk/src/libs/xpcom18a4/xpcom/components
- Timestamp:
- Aug 15, 2013 5:51:36 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/xpcom/components/nsComponentManager.cpp
r39926 r47778 2376 2376 mon.Enter(); 2377 2377 2378 #ifdef XPCOM_CHECK_PENDING_CIDS 2378 #ifdef XPCOM_CHECK_PENDING_CIDS 2379 2379 if (entry) 2380 2380 RemovePendingCID(entry->mCid); … … 3723 3723 if (nsComponentManagerImpl::gComponentManager == nsnull) 3724 3724 { 3725 #ifdef VBOX 3726 // While XPCOM might need initialization, we're not in a position 3727 // to pass the right values to this call. This is actually triggered 3728 // on object destruction, so there is no point in re-initializing, 3729 // and actually the attempt would lead to nested calls to 3730 // xptiInterfaceInfoManager::BuildFileSearchPath, which it detects 3731 // as unsafe in debug builds. Just fail, no real problem. 3732 #ifdef DEBUG 3733 printf("NS_GetServiceManager: no current instance, suppressed XPCOM initialization!\n"); 3734 #endif 3735 rv = NS_ERROR_SERVICE_NOT_AVAILABLE; 3736 #else /* !VBOX */ 3725 3737 // XPCOM needs initialization. 3726 3738 rv = NS_InitXPCOM2(nsnull, nsnull, nsnull); 3739 #endif /* !VBOX */ 3727 3740 } 3728 3741
Note:
See TracChangeset
for help on using the changeset viewer.