Changeset 80585 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Sep 4, 2019 2:05:50 PM (5 years ago)
- Location:
- trunk/src/VBox/Main/src-server
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
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.