Changeset 80585 in vbox for trunk/src/VBox/Main
- Timestamp:
- Sep 4, 2019 2:05:50 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 133105
- Location:
- trunk/src/VBox/Main
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-all/TextScript.cpp
r76553 r80585 65 65 HRESULT hrc; 66 66 uint64_t cbFile = 0; 67 int vrc = RTVfsFile GetSize(hVfsFile, &cbFile);67 int vrc = RTVfsFileQuerySize(hVfsFile, &cbFile); 68 68 if ( RT_SUCCESS(vrc) 69 69 && cbFile < _16M) … … 108 108 mpSetError->tr("'%s' is too big (max 16MB): %'RU64"), pszFilename, cbFile); 109 109 else 110 hrc = mpSetError->setErrorVrc(vrc, mpSetError->tr("RTVfsFile GetSize failed (%Rrc)"), vrc);110 hrc = mpSetError->setErrorVrc(vrc, mpSetError->tr("RTVfsFileQuerySize failed (%Rrc)"), vrc); 111 111 return hrc; 112 112 } -
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r80360 r80585 3969 3969 RTFOFF maxSize; 3970 3970 /* Careful: This function will work only on selected local file systems! */ 3971 rc = RTFile GetMaxSizeEx(file, &maxSize);3971 rc = RTFileQueryMaxSizeEx(file, &maxSize); 3972 3972 RTFileClose(file); 3973 3973 if ( RT_SUCCESS(rc) -
trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp
r79418 r80585 1979 1979 { 1980 1980 uint64_t cbSrcSize = 0; 1981 rc = RTVfsFile GetSize(hVfsFile, &cbSrcSize);1981 rc = RTVfsFileQuerySize(hVfsFile, &cbSrcSize); 1982 1982 if (RT_SUCCESS(rc)) 1983 1983 { -
trunk/src/VBox/Main/src-server/MachineImplCloneVM.cpp
r76553 r80585 222 222 sst.strSaveStateFile = bstrSrcSaveStatePath; 223 223 uint64_t cbSize; 224 int vrc = RTFileQuerySize (sst.strSaveStateFile.c_str(), &cbSize);224 int vrc = RTFileQuerySizeByPath(sst.strSaveStateFile.c_str(), &cbSize); 225 225 if (RT_FAILURE(vrc)) 226 226 return p->setErrorBoth(VBOX_E_IPRT_ERROR, vrc, p->tr("Could not query file size of '%s' (%Rrc)"), -
trunk/src/VBox/Main/src-server/MachineImplMoveVM.cpp
r79956 r80585 393 393 if (name.contains(strSettingsFilePath)) 394 394 { 395 vrc = RTFileQuerySize (name.c_str(), &cbFile);395 vrc = RTFileQuerySizeByPath(name.c_str(), &cbFile); 396 396 if (RT_SUCCESS(vrc)) 397 397 { … … 448 448 449 449 uint64_t cbFile = 0; 450 vrc = RTFileQuerySize (strFile.c_str(), &cbFile);450 vrc = RTFileQuerySizeByPath(strFile.c_str(), &cbFile); 451 451 if (RT_SUCCESS(vrc)) 452 452 { … … 1297 1297 Utf8Str fullPath = it->first; 1298 1298 fullPath.append(RTPATH_DELIMITER).append(it->second); 1299 vrc = RTFileQuerySize (fullPath.c_str(), &cbFile);1299 vrc = RTFileQuerySizeByPath(fullPath.c_str(), &cbFile); 1300 1300 if (RT_SUCCESS(vrc)) 1301 1301 { … … 1482 1482 uint64_t cbSize; 1483 1483 1484 int vrc = RTFileQuerySize (sst.strSaveStateFile.c_str(), &cbSize);1484 int vrc = RTFileQuerySizeByPath(sst.strSaveStateFile.c_str(), &cbSize); 1485 1485 if (RT_FAILURE(vrc)) 1486 1486 return m_pMachine->setErrorBoth(VBOX_E_IPRT_ERROR, vrc, -
trunk/src/VBox/Main/src-server/MediumImpl.cpp
r79968 r80585 5547 5547 if (i_isMediumFormatFile() && pOther->i_isMediumFormatFile()) 5548 5548 { 5549 vrc = RTFileQuerySize (this->i_getLocationFull().c_str(), &cbMediumThis);5549 vrc = RTFileQuerySizeByPath(this->i_getLocationFull().c_str(), &cbMediumThis); 5550 5550 if (RT_SUCCESS(vrc)) 5551 5551 { 5552 vrc = RTFileQuerySize (pOther->i_getLocationFull().c_str(),5552 vrc = RTFileQuerySizeByPath(pOther->i_getLocationFull().c_str(), 5553 5553 &cbMediumOther); 5554 5554 } -
trunk/src/VBox/Main/src-server/generic/AutostartDb-generic.cpp
r80569 r80585 72 72 * should be really really small. Anything else is bogus. 73 73 */ 74 rc = RTFile GetSize(hAutostartFile, &cbFile);74 rc = RTFileQuerySize(hAutostartFile, &cbFile); 75 75 if ( RT_SUCCESS(rc) 76 76 && cbFile <= 16)
Note:
See TracChangeset
for help on using the changeset viewer.