Changeset 97151 in vbox for trunk/src/VBox/Main
- Timestamp:
- Oct 14, 2022 8:02:41 AM (2 years ago)
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r96617 r97151 1866 1866 { 1867 1867 case VERR_INVALID_VM_HANDLE: 1868 strError += Utf8StrFmt(tr("VMM device is not available (is the VM running?)"));1868 strError.printf(tr("VMM device is not available (is the VM running?)")); 1869 1869 break; 1870 1870 1871 1871 case VERR_HGCM_SERVICE_NOT_FOUND: 1872 strError += Utf8StrFmt(tr("The guest execution service is not available"));1872 strError.printf(tr("The guest execution service is not available")); 1873 1873 break; 1874 1874 1875 1875 case VERR_ACCOUNT_RESTRICTED: 1876 strError += Utf8StrFmt(tr("The specified user account on the guest is restricted and can't be used to logon"));1876 strError.printf(tr("The specified user account on the guest is restricted and can't be used to logon")); 1877 1877 break; 1878 1878 1879 1879 case VERR_AUTHENTICATION_FAILURE: 1880 strError += Utf8StrFmt(tr("The specified user was not able to logon on guest"));1880 strError.printf(tr("The specified user was not able to logon on guest")); 1881 1881 break; 1882 1882 1883 1883 case VERR_TIMEOUT: 1884 strError += Utf8StrFmt(tr("The guest did not respond within time"));1884 strError.printf(tr("The guest did not respond within time")); 1885 1885 break; 1886 1886 1887 1887 case VERR_CANCELLED: 1888 strError += Utf8StrFmt(tr("The session operation was canceled"));1888 strError.printf(tr("The session operation was canceled")); 1889 1889 break; 1890 1890 1891 1891 case VERR_GSTCTL_MAX_CID_OBJECTS_REACHED: 1892 strError += Utf8StrFmt(tr("Maximum number of concurrent guest processes has been reached"));1892 strError.printf(tr("Maximum number of concurrent guest processes has been reached")); 1893 1893 break; 1894 1894 1895 1895 case VERR_NOT_FOUND: 1896 strError += Utf8StrFmt(tr("The guest execution service is not ready (yet)"));1896 strError.printf(tr("The guest execution service is not ready (yet)")); 1897 1897 break; 1898 1898 1899 1899 default: 1900 strError += Utf8StrFmt("%Rrc", rcGuest);1900 strError.printf("%Rrc", rcGuest); 1901 1901 break; 1902 1902 } -
trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp
r97139 r97151 1449 1449 if (mDest.isEmpty()) 1450 1450 { 1451 strErrorInfo = Utf8StrFmt(tr("Host destination must not be empty"));1451 strErrorInfo.printf(tr("Host destination must not be empty")); 1452 1452 vrc = VERR_INVALID_PARAMETER; 1453 1453 } … … 1464 1464 if (strSrc.isEmpty()) 1465 1465 { 1466 strErrorInfo = Utf8StrFmt(tr("Guest source entry must not be empty"));1466 strErrorInfo.printf(tr("Guest source entry must not be empty")); 1467 1467 vrc = VERR_INVALID_PARAMETER; 1468 1468 break; … … 1501 1501 GuestErrorInfo(GuestErrorInfo::Type_ToolStat, vrcGuest, strSrc.c_str())); 1502 1502 else 1503 strErrorInfo = Utf8StrFmt(tr("Guest file lookup for \"%s\" failed: %Rrc"),1504 1503 strErrorInfo.printf(tr("Guest file lookup for \"%s\" failed: %Rrc"), 1504 strSrc.c_str(), vrc); 1505 1505 break; 1506 1506 } … … 1510 1510 if (itSrc->enmType != FsObjType_Directory) 1511 1511 { 1512 strErrorInfo = Utf8StrFmt(tr("Guest source is not a file: %s"), strSrc.c_str());1512 strErrorInfo.printf(tr("Guest source is not a file: %s"), strSrc.c_str()); 1513 1513 vrc = VERR_NOT_A_FILE; 1514 1514 break; … … 1519 1519 if (itSrc->enmType != FsObjType_File) 1520 1520 { 1521 strErrorInfo = Utf8StrFmt(tr("Guest source is not a directory: %s"), strSrc.c_str());1521 strErrorInfo.printf(tr("Guest source is not a directory: %s"), strSrc.c_str()); 1522 1522 vrc = VERR_NOT_A_DIRECTORY; 1523 1523 break; … … 1541 1541 { 1542 1542 delete pFsList; 1543 strErrorInfo = Utf8StrFmt(tr("Error adding guest source '%s' to list: %Rrc"),1544 1543 strErrorInfo.printf(tr("Error adding guest source '%s' to list: %Rrc"), 1544 strSrc.c_str(), vrc); 1545 1545 break; 1546 1546 } … … 1577 1577 { 1578 1578 if (strErrorInfo.isEmpty()) 1579 strErrorInfo = Utf8StrFmt(tr("Failed with %Rrc"), vrc);1579 strErrorInfo.printf(tr("Failed with %Rrc"), vrc); 1580 1580 setProgressErrorMsg(VBOX_E_IPRT_ERROR, strErrorInfo); 1581 1581 } … … 1752 1752 if (mDest.isEmpty()) 1753 1753 { 1754 strErrorInfo = Utf8StrFmt(tr("Guest destination must not be empty"));1754 strErrorInfo.printf(tr("Guest destination must not be empty")); 1755 1755 vrc = VERR_INVALID_PARAMETER; 1756 1756 } … … 1767 1767 if (strSrc.isEmpty()) 1768 1768 { 1769 strErrorInfo = Utf8StrFmt(tr("Host source entry must not be empty"));1769 strErrorInfo.printf(tr("Host source entry must not be empty")); 1770 1770 vrc = VERR_INVALID_PARAMETER; 1771 1771 break; … … 1776 1776 if (RT_FAILURE(vrc)) 1777 1777 { 1778 strErrorInfo = Utf8StrFmt(tr("No such host file/directory: %s"), strSrc.c_str());1778 strErrorInfo.printf(tr("No such host file/directory: %s"), strSrc.c_str()); 1779 1779 break; 1780 1780 } … … 1784 1784 if (itSrc->enmType != FsObjType_Directory) 1785 1785 { 1786 strErrorInfo = Utf8StrFmt(tr("Host source is not a file: %s"), strSrc.c_str());1786 strErrorInfo.printf(tr("Host source is not a file: %s"), strSrc.c_str()); 1787 1787 vrc = VERR_NOT_A_FILE; 1788 1788 break; … … 1793 1793 if (itSrc->enmType == FsObjType_Directory) 1794 1794 { 1795 strErrorInfo = Utf8StrFmt(tr("Host source is not a directory: %s"), strSrc.c_str());1795 strErrorInfo.printf(tr("Host source is not a directory: %s"), strSrc.c_str()); 1796 1796 vrc = VERR_NOT_A_DIRECTORY; 1797 1797 break; … … 1818 1818 { 1819 1819 delete pFsList; 1820 strErrorInfo = Utf8StrFmt(tr("Error adding host source '%s' to list: %Rrc"),1821 1820 strErrorInfo.printf(tr("Error adding host source '%s' to list: %Rrc"), 1821 strSrc.c_str(), vrc); 1822 1822 break; 1823 1823 } … … 1854 1854 { 1855 1855 if (strErrorInfo.isEmpty()) 1856 strErrorInfo = Utf8StrFmt(tr("Failed with %Rrc"), vrc);1856 strErrorInfo.printf(tr("Failed with %Rrc"), vrc); 1857 1857 setProgressErrorMsg(VBOX_E_IPRT_ERROR, strErrorInfo); 1858 1858 }
Note:
See TracChangeset
for help on using the changeset viewer.