Changeset 78021 in vbox for trunk/src/VBox/GuestHost/DragAndDrop
- Timestamp:
- Apr 5, 2019 8:25:19 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/DragAndDrop/DnDURIList.cpp
r76553 r78021 65 65 if (pObjFile) 66 66 { 67 if (fFlags & DNDURILIST_FLAGS_KEEP_OPEN) /* Shall we keep the file open while being added to this list? */ 68 { 69 /** @todo Add a standard fOpen mode for this list. */ 70 rc = pObjFile->Open(DnDURIObject::View_Source, RTFILE_O_OPEN | RTFILE_O_READ | RTFILE_O_DENY_WRITE); 71 } 72 else /* Just query the information without opening the file. */ 73 rc = pObjFile->QueryInfo(DnDURIObject::View_Source); 74 67 /** @todo Add a standard fOpen mode for this list. */ 68 rc = pObjFile->Open(DnDURIObject::View_Source, RTFILE_O_OPEN | RTFILE_O_READ | RTFILE_O_DENY_WRITE); 75 69 if (RT_SUCCESS(rc)) 76 70 { … … 79 73 m_cTotal++; 80 74 m_cbTotal += pObjFile->GetSize(); 75 76 if (!(fFlags & DNDURILIST_FLAGS_KEEP_OPEN)) /* Shall we keep the file open while being added to this list? */ 77 pObjFile->Close(); 81 78 } 82 79 else
Note:
See TracChangeset
for help on using the changeset viewer.