Changeset 27905 in vbox
- Timestamp:
- Mar 31, 2010 2:19:30 PM (14 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 5 edited
-
ApplianceImplExport.cpp (modified) (6 diffs)
-
ApplianceImplImport.cpp (modified) (9 diffs)
-
DisplayImpl.cpp (modified) (3 diffs)
-
VFSExplorerImpl.cpp (modified) (5 diffs)
-
darwin/HostPowerDarwin.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ApplianceImplExport.cpp
r27895 r27905 1593 1593 1594 1594 vrc = RTPathExists(strTmpOvf.c_str()); /* Paranoid check */ 1595 if (RT_FAILURE(vrc))1595 if (RT_FAILURE(vrc)) 1596 1596 throw setError(VBOX_E_FILE_ERROR, 1597 1597 tr("Cannot find source file '%s'"), strTmpOvf.c_str()); … … 1621 1621 strTargetFilePath.append(strTargetFileNameOnly); 1622 1622 vrc = RTPathExists(strTargetFilePath.c_str()); /* Paranoid check */ 1623 if (RT_FAILURE(vrc))1623 if (RT_FAILURE(vrc)) 1624 1624 throw setError(VBOX_E_FILE_ERROR, 1625 1625 tr("Cannot find source file '%s'"), strTargetFilePath.c_str()); … … 1629 1629 /* Next we have to upload the OVF & all disk images */ 1630 1630 vrc = RTS3Create(&hS3, pTask->locInfo.strUsername.c_str(), pTask->locInfo.strPassword.c_str(), pTask->locInfo.strHostname.c_str(), "virtualbox-agent/"VBOX_VERSION_STRING); 1631 if (RT_FAILURE(vrc))1631 if (RT_FAILURE(vrc)) 1632 1632 throw setError(VBOX_E_IPRT_ERROR, 1633 1633 tr("Cannot create S3 service handler")); … … 1645 1645 if (RT_FAILURE(vrc)) 1646 1646 { 1647 if (vrc == VERR_S3_CANCELED)1647 if (vrc == VERR_S3_CANCELED) 1648 1648 break; 1649 else if (vrc == VERR_S3_ACCESS_DENIED)1649 else if (vrc == VERR_S3_ACCESS_DENIED) 1650 1650 throw setError(E_ACCESSDENIED, 1651 1651 tr("Cannot upload file '%s' to S3 storage server (Access denied). Make sure that your credentials are right. Also check that your host clock is properly synced"), pszFilename); 1652 else if (vrc == VERR_S3_NOT_FOUND)1652 else if (vrc == VERR_S3_NOT_FOUND) 1653 1653 throw setError(VBOX_E_FILE_ERROR, 1654 1654 tr("Cannot upload file '%s' to S3 storage server (File not found)"), pszFilename); … … 1672 1672 { 1673 1673 vrc = RTFileDelete(pszFilePath); 1674 if (RT_FAILURE(vrc))1674 if (RT_FAILURE(vrc)) 1675 1675 rc = setError(VBOX_E_FILE_ERROR, 1676 1676 tr("Cannot delete file '%s' (%Rrc)"), pszFilePath, vrc); … … 1681 1681 { 1682 1682 vrc = RTDirRemove(pszTmpDir); 1683 if (RT_FAILURE(vrc))1683 if (RT_FAILURE(vrc)) 1684 1684 rc = setError(VBOX_E_FILE_ERROR, 1685 1685 tr("Cannot delete temporary directory '%s' (%Rrc)"), pszTmpDir, vrc); -
trunk/src/VBox/Main/ApplianceImplImport.cpp
r27904 r27905 759 759 /* Next we have to download the OVF */ 760 760 vrc = RTS3Create(&hS3, pTask->locInfo.strUsername.c_str(), pTask->locInfo.strPassword.c_str(), pTask->locInfo.strHostname.c_str(), "virtualbox-agent/"VBOX_VERSION_STRING); 761 if (RT_FAILURE(vrc))761 if (RT_FAILURE(vrc)) 762 762 throw setError(VBOX_E_IPRT_ERROR, 763 763 tr("Cannot create S3 service handler")); … … 769 769 if (RT_FAILURE(vrc)) 770 770 { 771 if (vrc == VERR_S3_CANCELED)771 if (vrc == VERR_S3_CANCELED) 772 772 throw S_OK; /* todo: !!!!!!!!!!!!! */ 773 else if (vrc == VERR_S3_ACCESS_DENIED)773 else if (vrc == VERR_S3_ACCESS_DENIED) 774 774 throw setError(E_ACCESSDENIED, 775 775 tr("Cannot download file '%s' from S3 storage server (Access denied). Make sure that your credentials are right. Also check that your host clock is properly synced"), pszFilename); 776 else if (vrc == VERR_S3_NOT_FOUND)776 else if (vrc == VERR_S3_NOT_FOUND) 777 777 throw setError(VBOX_E_FILE_ERROR, 778 778 tr("Cannot download file '%s' from S3 storage server (File not found)"), pszFilename); … … 817 817 { 818 818 vrc = RTFileDelete(strTmpOvf.c_str()); 819 if (RT_FAILURE(vrc))819 if (RT_FAILURE(vrc)) 820 820 rc = setError(VBOX_E_FILE_ERROR, 821 821 tr("Cannot delete file '%s' (%Rrc)"), strTmpOvf.c_str(), vrc); … … 825 825 { 826 826 vrc = RTDirRemove(pszTmpDir); 827 if (RT_FAILURE(vrc))827 if (RT_FAILURE(vrc)) 828 828 rc = setError(VBOX_E_FILE_ERROR, 829 829 tr("Cannot delete temporary directory '%s' (%Rrc)"), pszTmpDir, vrc); … … 1845 1845 /* Next we have to download the disk images */ 1846 1846 vrc = RTS3Create(&hS3, pTask->locInfo.strUsername.c_str(), pTask->locInfo.strPassword.c_str(), pTask->locInfo.strHostname.c_str(), "virtualbox-agent/"VBOX_VERSION_STRING); 1847 if (RT_FAILURE(vrc))1847 if (RT_FAILURE(vrc)) 1848 1848 throw setError(VBOX_E_IPRT_ERROR, 1849 1849 tr("Cannot create S3 service handler")); … … 1864 1864 if (RT_FAILURE(vrc)) 1865 1865 { 1866 if (vrc == VERR_S3_CANCELED)1866 if (vrc == VERR_S3_CANCELED) 1867 1867 throw S_OK; /* todo: !!!!!!!!!!!!! */ 1868 else if (vrc == VERR_S3_ACCESS_DENIED)1868 else if (vrc == VERR_S3_ACCESS_DENIED) 1869 1869 throw setError(E_ACCESSDENIED, 1870 1870 tr("Cannot download file '%s' from S3 storage server (Access denied). Make sure that your credentials are right. Also check that your host clock is properly synced"), pszFilename); 1871 else if (vrc == VERR_S3_NOT_FOUND)1871 else if (vrc == VERR_S3_NOT_FOUND) 1872 1872 throw setError(VBOX_E_FILE_ERROR, 1873 1873 tr("Cannot download file '%s' from S3 storage server (File not found)"), pszFilename); … … 1893 1893 else if (RT_FAILURE(vrc)) 1894 1894 { 1895 if (vrc == VERR_S3_CANCELED)1895 if (vrc == VERR_S3_CANCELED) 1896 1896 throw S_OK; /* todo: !!!!!!!!!!!!! */ 1897 else if (vrc == VERR_S3_NOT_FOUND)1897 else if (vrc == VERR_S3_NOT_FOUND) 1898 1898 vrc = VINF_SUCCESS; /* Not found is ok */ 1899 else if (vrc == VERR_S3_ACCESS_DENIED)1899 else if (vrc == VERR_S3_ACCESS_DENIED) 1900 1900 throw setError(E_ACCESSDENIED, 1901 1901 tr("Cannot download file '%s' from S3 storage server (Access denied). Make sure that your credentials are right. Also check that your host clock is properly synced"), pszFilename); … … 1942 1942 { 1943 1943 vrc = RTFileDelete(pszFilePath); 1944 if (RT_FAILURE(vrc))1944 if (RT_FAILURE(vrc)) 1945 1945 rc = setError(VBOX_E_FILE_ERROR, 1946 1946 tr("Cannot delete file '%s' (%Rrc)"), pszFilePath, vrc); … … 1951 1951 { 1952 1952 vrc = RTDirRemove(pszTmpDir); 1953 if (RT_FAILURE(vrc))1953 if (RT_FAILURE(vrc)) 1954 1954 rc = setError(VBOX_E_FILE_ERROR, 1955 1955 tr("Cannot delete temporary directory '%s' (%Rrc)"), pszTmpDir, vrc); -
trunk/src/VBox/Main/DisplayImpl.cpp
r27889 r27905 3214 3214 unsigned id = (unsigned)pCommand->iDisplay; 3215 3215 int rc = VINF_SUCCESS; 3216 if (id < mcMonitors)3216 if (id < mcMonitors) 3217 3217 { 3218 3218 IFramebuffer *pFramebuffer = maFramebuffers[id].pFramebuffer; … … 3224 3224 3225 3225 HRESULT hr = pFramebuffer->ProcessVHWACommand((BYTE*)pCommand); 3226 if (FAILED(hr))3226 if (FAILED(hr)) 3227 3227 { 3228 3228 rc = (hr == E_NOTIMPL) ? VERR_NOT_IMPLEMENTED : VERR_GENERAL_FAILURE; … … 3241 3241 } 3242 3242 3243 if (RT_FAILURE(rc))3243 if (RT_FAILURE(rc)) 3244 3244 { 3245 3245 /* tell the guest the command is complete */ -
trunk/src/VBox/Main/VFSExplorerImpl.cpp
r27607 r27905 300 300 throw setError(VBOX_E_FILE_ERROR, tr ("Can't open directory '%s' (%Rrc)"), pszPath, vrc); 301 301 302 if (aTask->progress)302 if (aTask->progress) 303 303 aTask->progress->SetCurrentOperationProgress(33); 304 304 RTDIRENTRY entry; … … 314 314 } 315 315 } 316 if (aTask->progress)316 if (aTask->progress) 317 317 aTask->progress->SetCurrentOperationProgress(66); 318 318 } … … 328 328 RTDirClose(pDir); 329 329 330 if (aTask->progress)330 if (aTask->progress) 331 331 aTask->progress->SetCurrentOperationProgress(99); 332 332 … … 373 373 if (RT_FAILURE(vrc)) 374 374 throw setError(VBOX_E_FILE_ERROR, tr ("Can't delete file '%s' (%Rrc)"), szPath, vrc); 375 if (aTask->progress)375 if (aTask->progress) 376 376 aTask->progress->SetCurrentOperationProgress((ULONG)(fPercentStep * i)); 377 377 } … … 499 499 if (RT_FAILURE(vrc)) 500 500 throw setError(VBOX_E_FILE_ERROR, tr ("Can't delete file '%s' (%Rrc)"), (*it).c_str(), vrc); 501 if (aTask->progress)501 if (aTask->progress) 502 502 aTask->progress->SetCurrentOperationProgress((ULONG)(fPercentStep * i)); 503 503 } -
trunk/src/VBox/Main/darwin/HostPowerDarwin.cpp
r22648 r27905 179 179 if (CFArrayGetCount (pSources) > 0) 180 180 { 181 for (int i = 0; i < CFArrayGetCount (pSources); ++i)181 for (int i = 0; i < CFArrayGetCount (pSources); ++i) 182 182 { 183 183 pSource = IOPSGetPowerSourceDescription (pBlob, CFArrayGetValueAtIndex (pSources, i)); 184 184 /* If the source is empty skip over to the next one. */ 185 if (!pSource)185 if (!pSource) 186 186 continue; 187 187 /* Skip all power sources which are currently not present like a
Note:
See TracChangeset
for help on using the changeset viewer.

