- Timestamp:
- Jul 24, 2020 1:10:47 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/DragAndDrop/DnDDroppedFiles.cpp
r85433 r85456 42 42 static int dndDroppedFilesInitInternal(PDNDDROPPEDFILES pDF) 43 43 { 44 pDF->m_fOpen = 0; 45 pDF->m_hDir = NIL_RTDIR; 44 pDF->m_fOpen = 0; 45 pDF->m_hDir = NIL_RTDIR; 46 pDF->pszPathAbs = NULL; 46 47 47 48 RTListInit(&pDF->m_lstDirs); … … 71 72 * directories / files here. */ 72 73 dndDroppedFilesCloseInternal(pDF); 74 75 RTStrFree(pDF->pszPathAbs); 76 pDF->pszPathAbs = NULL; 73 77 } 74 78 … … 238 242 if (RT_SUCCESS(rc)) 239 243 { 244 pDF->pszPathAbs = RTStrDup(szDropDir); 245 AssertPtrBreakStmt(pDF->pszPathAbs, rc = VERR_NO_MEMORY); 240 246 pDF->m_hDir = hDir; 241 pDF->pszPathAbs = szDropDir;242 247 pDF->m_fOpen = fFlags; 243 248 }
Note:
See TracChangeset
for help on using the changeset viewer.