summaryrefslogtreecommitdiff
path: root/src/VBox/Main/HostImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/VBox/Main/HostImpl.cpp')
-rw-r--r--src/VBox/Main/HostImpl.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/VBox/Main/HostImpl.cpp b/src/VBox/Main/HostImpl.cpp
index fe71325cd..4f10bc101 100644
--- a/src/VBox/Main/HostImpl.cpp
+++ b/src/VBox/Main/HostImpl.cpp
@@ -1,4 +1,4 @@
-/* $Id: HostImpl.cpp 15869 2009-01-08 14:52:34Z vboxsync $ */
+/* $Id: HostImpl.cpp $ */
/** @file
* VirtualBox COM class implementation: Host
*/
@@ -2347,6 +2347,10 @@ HRESULT Host::checkUSBProxyService()
/* disable the USB controller completely to avoid assertions if the
* USB proxy service could not start. */
+ Bstr message;
+ if ( SUCCEEDED(mUSBProxyService->getLastErrorMessage(message.asOutParam()))
+ && !message.isNull())
+ return setWarning (E_FAIL, Utf8Str(message).raw());
if (mUSBProxyService->getLastError() == VERR_FILE_NOT_FOUND)
return setWarning (E_FAIL,
tr ("Could not load the Host USB Proxy Service (%Rrc). "