Changeset 45232 in vbox
- Timestamp:
- Mar 28, 2013 1:35:33 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 84607
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/ApplianceImplImport.cpp
r45230 r45232 854 854 if(RT_SUCCESS(vrc) && pFile != NULL) 855 855 { 856 size_t cbSize = 0;856 uint64_t cbFile = 0; 857 857 size_t cbRead = 0; 858 858 void *pBuf; 859 859 860 vrc = RTFileGetSize(pFile, &cb Size);861 if(RT_SUCCESS(vrc) && cb Size > 0)862 pBuf = RTMemAllocZ(cb Size);860 vrc = RTFileGetSize(pFile, &cbFile); 861 if(RT_SUCCESS(vrc) && cbFile > 0) 862 pBuf = RTMemAllocZ(cbFile); 863 863 else 864 864 throw vrc; 865 865 866 vrc = RTFileRead(pFile, pBuf, cb Size, &cbRead);866 vrc = RTFileRead(pFile, pBuf, cbFile, &cbRead); 867 867 868 868 if (RT_FAILURE(vrc))
Note:
See TracChangeset
for help on using the changeset viewer.