Changeset 56906 in vbox for trunk/src/VBox/GuestHost/DragAndDrop
- Timestamp:
- Jul 9, 2015 4:38:02 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/DragAndDrop/DnDURIObject.cpp
r55805 r56906 191 191 if (!u.m_hFile) 192 192 { 193 /* Open files on the source with RTFILE_O_DENY_WRITE to prevent races 193 /* 194 * Open files on the source with RTFILE_O_DENY_WRITE to prevent races 194 195 * where the OS writes to the file while the destination side transfers 195 * it over. */ 196 * it over. 197 */ 196 198 rc = RTFileOpen(&u.m_hFile, strPath.c_str(), fOpen); 197 199 LogFlowFunc(("strPath=%s, enmType=%RU32, enmDest=%RU32, rc=%Rrc\n", strPath.c_str(), enmType, enmDest, rc)); 200 #ifdef DEBUG 198 201 if (RT_SUCCESS(rc)) 199 rc = RTFileGetSize(u.m_hFile, &m_cbSize); 202 { 203 uint64_t cbSize; 204 rc = RTFileGetSize(u.m_hFile, &cbSize); 205 if ( RT_SUCCESS(rc) 206 && m_cbSize) 207 { 208 if (cbSize > m_cbSize) 209 LogFlowFunc(("Estimated file size (%RU64) differs from current size (%RU64)\n", m_cbSize, cbSize)); 210 } 211 } 212 #endif 200 213 if (RT_SUCCESS(rc) 201 214 && fMode) … … 228 241 m_Type = enmType; 229 242 243 LogFlowFuncLeaveRC(rc); 230 244 return rc; 231 245 }
Note:
See TracChangeset
for help on using the changeset viewer.