Index: /trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
===================================================================
--- /trunk/src/VBox/Main/src-client/ConsoleImpl.cpp	(revision 51764)
+++ /trunk/src/VBox/Main/src-client/ConsoleImpl.cpp	(revision 51765)
@@ -1983,4 +1983,5 @@
 
     size_t i = 0;
+    aUSBDevices.resize(mUSBDevices.size());
     for (USBDeviceList::const_iterator it = mUSBDevices.begin(); it != mUSBDevices.end(); ++i, ++it)
         (*it).queryInterfaceTo(aUSBDevices[i].asOutParam());
@@ -1995,4 +1996,5 @@
 
     size_t i = 0;
+    aRemoteUSBDevices.resize(mRemoteUSBDevices.size());
     for (RemoteUSBDeviceList::const_iterator it = mRemoteUSBDevices.begin(); it != mRemoteUSBDevices.end(); ++i, ++it)
         (*it).queryInterfaceTo(aRemoteUSBDevices[i].asOutParam());
@@ -2027,4 +2029,5 @@
 
     size_t i = 0;
+    aSharedFolders.resize(m_mapSharedFolders.size());
     for (SharedFolderMap::const_iterator it = m_mapSharedFolders.begin(); it != m_mapSharedFolders.end(); ++i, ++it)
         (it)->second.queryInterfaceTo(aSharedFolders[i].asOutParam());
