Changeset 97827 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Dec 16, 2022 3:24:52 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/draganddrop.cpp
r97826 r97827 306 306 } 307 307 308 inline RTCString xAtomListToString(const VBoxDnDAtomList &formatList )308 inline RTCString xAtomListToString(const VBoxDnDAtomList &formatList, const RTCString &strSep = DND_FORMATS_SEPARATOR_STR) 309 309 { 310 310 RTCString format; 311 311 for (size_t i = 0; i < formatList.size(); ++i) 312 format += xAtomToString(formatList.at(i)) + "\r\n";312 format += xAtomToString(formatList.at(i)) + strSep; 313 313 return format; 314 314 } … … 2253 2253 int rc; 2254 2254 2255 RTCString strFormats = "\r\n"; /** @todo If empty, IOCTL fails with VERR_ACCESS_DENIED. */2255 RTCString strFormats = DND_PATH_SEPARATOR_STR; /** @todo If empty, IOCTL fails with VERR_ACCESS_DENIED. */ 2256 2256 VBOXDNDACTION dndActionDefault = VBOX_DND_ACTION_IGNORE; 2257 2257 VBOXDNDACTIONLIST dndActionList = VBOX_DND_ACTION_IGNORE; … … 3410 3410 { 3411 3411 RTCList<RTCString> lstFormats = 3412 RTCString(pVbglR3Event->u.HG_Enter.pszFormats, pVbglR3Event->u.HG_Enter.cbFormats - 1).split( "\r\n");3412 RTCString(pVbglR3Event->u.HG_Enter.pszFormats, pVbglR3Event->u.HG_Enter.cbFormats - 1).split(DND_PATH_SEPARATOR_STR); 3413 3413 rc = m_pCurDnD->hgEnter(lstFormats, pVbglR3Event->u.HG_Enter.dndLstActionsAllowed); 3414 3414 if (RT_FAILURE(rc))
Note:
See TracChangeset
for help on using the changeset viewer.