Changeset 39679 in vbox for trunk/src/VBox/VMM/VMMR3
- Timestamp:
- Dec 27, 2011 9:14:19 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PDMAsyncCompletionFile.cpp
r39078 r39679 1097 1097 pTask, pEndpoint, off, paSegments, cSegments, cbRead)); 1098 1098 1099 if (RT_UNLIKELY(off + cbRead > pEpFile->cbFile)) 1100 return VERR_EOF; 1101 1099 1102 STAM_PROFILE_ADV_START(&pEpFile->StatRead, Read); 1100 1103 pdmacFileEpTaskInit(pTask, cbRead); … … 1163 1166 static int pdmacFileEpSetSize(PPDMASYNCCOMPLETIONENDPOINT pEndpoint, uint64_t cbSize) 1164 1167 { 1168 int rc; 1165 1169 PPDMASYNCCOMPLETIONENDPOINTFILE pEpFile = (PPDMASYNCCOMPLETIONENDPOINTFILE)pEndpoint; 1166 1170 1167 ASMAtomicWriteU64(&pEpFile->cbFile, cbSize); 1168 return RTFileSetSize(pEpFile->hFile, cbSize); 1171 rc = RTFileSetSize(pEpFile->hFile, cbSize); 1172 if (RT_SUCCESS(rc)) 1173 ASMAtomicWriteU64(&pEpFile->cbFile, cbSize); 1174 1175 return rc; 1169 1176 } 1170 1177
Note:
See TracChangeset
for help on using the changeset viewer.