Changeset 91745 in vbox for trunk/src/VBox/Main
- Timestamp:
- Oct 14, 2021 8:24:19 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp
r91744 r91745 2038 2038 2039 2039 int GuestSessionTaskUpdateAdditions::copyFileToGuest(GuestSession *pSession, RTVFS hVfsIso, 2040 Utf8Str const &strFileSrc, const Utf8Str &strFileDst, 2041 bool fOptional) 2040 Utf8Str const &strFileSrc, const Utf8Str &strFileDst, bool fOptional) 2042 2041 { 2043 2042 AssertPtrReturn(pSession, VERR_INVALID_POINTER); … … 2081 2080 else 2082 2081 { 2083 rc = fileCopyToGuestInner(strFileSrc, hVfsFile, strFileDst, dstFile, 2084 FileCopyFlag_None, 0 /*cbOffset*/, cbSrcSize); 2082 rc = fileCopyToGuestInner(strFileSrc, hVfsFile, strFileDst, dstFile, FileCopyFlag_None, 0 /*offCopy*/, cbSrcSize); 2085 2083 2086 2084 int rc2 = dstFile->i_closeFile(&rcGuest); … … 2090 2088 2091 2089 RTVfsFileRelease(hVfsFile); 2092 if (RT_FAILURE(rc)) 2093 return rc; 2094 } 2095 else 2096 { 2097 if (fOptional) 2098 return VINF_SUCCESS; 2099 2100 return rc; 2101 } 2090 } 2091 else if (fOptional) 2092 rc = VINF_SUCCESS; 2102 2093 2103 2094 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.