Changeset 41017 in vbox
- Timestamp:
- Apr 20, 2012 9:56:33 PM (13 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r40890 r41017 601 601 } 602 602 603 void UIMessageCenter::cannotInitUserHome(const QString &strUserHome) 604 { 605 message(0, Critical, 606 tr("<p>Failed to initialize COM because the VirtualBox global " 607 "configuration directory <b><nobr>%1</nobr></b> is not accessible. " 608 "Please check the permissions of this directory and of its parent " 609 "directory.</p>" 610 "<p>The application will now terminate.</p>").arg(strUserHome), 611 formatErrorInfo(COMErrorInfo())); 612 } 613 603 614 void UIMessageCenter::cannotCreateVirtualBox(const CVirtualBox &vbox) 604 615 { -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h
r40870 r41017 181 181 182 182 void cannotInitCOM(HRESULT rc); 183 void cannotInitUserHome(const QString &strUserHome); 183 184 void cannotCreateVirtualBox(const CVirtualBox &vbox); 184 185 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r40864 r41017 4777 4777 if (FAILED (rc)) 4778 4778 { 4779 msgCenter().cannotInitCOM (rc); 4779 if (rc == NS_ERROR_FILE_ACCESS_DENIED) 4780 { 4781 char szHome[RTPATH_MAX] = ""; 4782 com::GetVBoxUserHomeDirectory(szHome, sizeof(szHome)); 4783 msgCenter().cannotInitUserHome(QString(szHome)); 4784 } 4785 else 4786 msgCenter().cannotInitCOM(rc); 4780 4787 return; 4781 4788 } -
trunk/src/VBox/Main/glue/initterm.cpp
r35640 r41017 343 343 344 344 int vrc = GetVBoxUserHomeDirectory(szCompReg, sizeof(szCompReg)); 345 if (vrc == VERR_ACCESS_DENIED) 346 return NS_ERROR_FILE_ACCESS_DENIED; 345 347 AssertRCReturn(vrc, NS_ERROR_FAILURE); 346 348 strcpy(szXptiDat, szCompReg);
Note:
See TracChangeset
for help on using the changeset viewer.