VirtualBox

Ignore:
Timestamp:
Apr 30, 2012 3:18:06 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
77697
Message:

better error report if the global settings directory is not accessible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBalloonCtrl/VBoxWatchdog.cpp

    r41043 r41100  
    10921092    using namespace com;
    10931093    HRESULT hrc = com::Initialize();
     1094# ifdef VBOX_WITH_XPCOM
     1095    if (hrc == NS_ERROR_FILE_ACCESS_DENIED)
     1096    {
     1097        char szHome[RTPATH_MAX] = "";
     1098        com::GetVBoxUserHomeDirectory(szHome, sizeof(szHome));
     1099        return RTMsgErrorExit(RTEXITCODE_FAILURE,
     1100               "Failed to initialize COM because the global settings directory '%s' is not accessible!", szHome);
     1101    }
     1102# endif
    10941103    if (FAILED(hrc))
    10951104        return RTMsgErrorExit(RTEXITCODE_FAILURE, "Failed to initialize COM (%Rhrc)!", hrc);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette