Changeset 79294 in vbox
- Timestamp:
- Jun 23, 2019 4:09:31 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 131503
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestImpl.cpp
r79055 r79294 80 80 unconst(mParent) = aParent; 81 81 82 /* Confirm a successful initialization when it's the case */ 83 autoInitSpan.setSucceeded(); 84 85 ULONG aMemoryBalloonSize; 82 ULONG aMemoryBalloonSize = 0; 86 83 HRESULT hr = mParent->i_machine()->COMGETTER(MemoryBalloonSize)(&aMemoryBalloonSize); 87 if ( hr == S_OK) /** @todo r=andy SUCCEEDED? */84 if (SUCCEEDED(hr)) 88 85 mMemoryBalloonSize = aMemoryBalloonSize; 89 86 else 90 87 mMemoryBalloonSize = 0; /* Default is no ballooning */ 91 88 92 BOOL fPageFusionEnabled ;89 BOOL fPageFusionEnabled = FALSE; 93 90 hr = mParent->i_machine()->COMGETTER(PageFusionEnabled)(&fPageFusionEnabled); 94 if ( hr == S_OK) /** @todo r=andy SUCCEEDED? */91 if (SUCCEEDED(hr)) 95 92 mfPageFusionEnabled = fPageFusionEnabled; 96 93 else … … 113 110 int vrc = RTTimerLRCreate(&mStatTimer, 1000 /* ms */, 114 111 &Guest::i_staticUpdateStats, this); 115 AssertMsgRC(vrc, ("Failed to create guest statistics update timer (%Rrc) \n", vrc));112 AssertMsgRC(vrc, ("Failed to create guest statistics update timer (%Rrc) - ignored\n", vrc)); 116 113 117 114 hr = unconst(mEventSource).createObject(); … … 122 119 123 120 #ifdef VBOX_WITH_DRAG_AND_DROP 124 try 125 { 126 GuestDnD::createInstance(this /* pGuest */); 127 hr = unconst(mDnDSource).createObject(); 128 if (SUCCEEDED(hr)) 129 hr = mDnDSource->init(this /* pGuest */); 130 if (SUCCEEDED(hr)) 131 { 132 hr = unconst(mDnDTarget).createObject(); 121 if (SUCCEEDED(hr)) 122 { 123 try 124 { 125 GuestDnD::createInstance(this /* pGuest */); 126 hr = unconst(mDnDSource).createObject(); 133 127 if (SUCCEEDED(hr)) 134 hr = mDnDTarget->init(this /* pGuest */); 135 } 136 137 LogFlowFunc(("Drag and drop initializied with hr=%Rhrc\n", hr)); 138 } 139 catch (std::bad_alloc &) 140 { 141 hr = E_OUTOFMEMORY; 128 hr = mDnDSource->init(this /* pGuest */); 129 if (SUCCEEDED(hr)) 130 { 131 hr = unconst(mDnDTarget).createObject(); 132 if (SUCCEEDED(hr)) 133 hr = mDnDTarget->init(this /* pGuest */); 134 } 135 136 LogFlowFunc(("Drag and drop initializied with hr=%Rhrc\n", hr)); 137 } 138 catch (std::bad_alloc &) 139 { 140 hr = E_OUTOFMEMORY; 141 } 142 142 } 143 143 #endif 144 145 /* Confirm a successful initialization when it's the case: */ 146 if (SUCCEEDED(hr)) 147 autoInitSpan.setSucceeded(); 148 else 149 autoInitSpan.setFailed(); 144 150 145 151 LogFlowFunc(("hr=%Rhrc\n", hr));
Note:
See TracChangeset
for help on using the changeset viewer.