summaryrefslogtreecommitdiff
path: root/src/VBox/Main/src-server/HostImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/VBox/Main/src-server/HostImpl.cpp')
-rw-r--r--src/VBox/Main/src-server/HostImpl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/VBox/Main/src-server/HostImpl.cpp b/src/VBox/Main/src-server/HostImpl.cpp
index 6bba2ac66..a2994f520 100644
--- a/src/VBox/Main/src-server/HostImpl.cpp
+++ b/src/VBox/Main/src-server/HostImpl.cpp
@@ -239,6 +239,7 @@ void Host::FinalRelease()
*/
HRESULT Host::init(VirtualBox *aParent)
{
+ HRESULT hrc;
LogFlowThisFunc(("aParent=%p\n", aParent));
/* Enclose the state transition NotReady->InInit->Ready */
@@ -268,7 +269,7 @@ HRESULT Host::init(VirtualBox *aParent)
# else
m->pUSBProxyService = new USBProxyService(this);
# endif
- HRESULT hrc = m->pUSBProxyService->init();
+ hrc = m->pUSBProxyService->init();
AssertComRCReturn(hrc, hrc);
#endif /* VBOX_WITH_USB */
@@ -1679,7 +1680,7 @@ HRESULT Host::getDrives(DeviceType_T mediumType,
Medium *pNew = *itNew;
const Utf8Str strLocationNew = pNew->getLocationFull();
bool fFound = false;
- for (MediaList::iterator itCached = pllCached->begin();
+ for (itCached = pllCached->begin();
itCached != pllCached->end();
++itCached)
{