Changeset 56900 in vbox for trunk/src/VBox
- Timestamp:
- Jul 9, 2015 2:24:26 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/DragAndDrop/DnDDir.cpp
r55640 r56900 97 97 pDir->hDir = phDir; 98 98 pDir->strPathAbs = pszDropDir; 99 pDir->fOpen = true; 99 100 } 100 101 } … … 125 126 AssertPtrReturn(pDir, VERR_INVALID_POINTER); 126 127 127 int rc = RTDirClose(pDir->hDir); 128 int rc = VINF_SUCCESS; 129 if (pDir->fOpen) 130 { 131 rc = RTDirClose(pDir->hDir); 132 if (RT_SUCCESS(rc)) 133 pDir->fOpen = false; 134 } 128 135 if (RT_SUCCESS(rc)) 129 136 { … … 131 138 pDir->lstFiles.clear(); 132 139 133 if (fRemove) 140 if ( fRemove 141 && pDir->strPathAbs.isNotEmpty()) 134 142 { 135 143 /* Try removing the (empty) drop directory in any case. */
Note:
See TracChangeset
for help on using the changeset viewer.