Changeset 102818 in vbox for trunk/src/VBox/Additions/x11
- Timestamp:
- Jan 10, 2024 1:56:27 PM (14 months ago)
- svn:sync-xref-src-repo-rev:
- 161006
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/clipboard-x11.cpp
r102468 r102818 337 337 if (RT_SUCCESS(rc)) 338 338 { 339 char *pszURL = NULL; 340 341 uint64_t const cRoots = ShClTransferRootsCount(pTransfer); 342 for (uint32_t i = 0; i < cRoots; i++) 343 { 344 char *pszEntry = ShClTransferHttpServerGetUrlA(pSrv, ShClTransferGetID(pTransfer), i /* Entry index */); 345 AssertPtrBreakStmt(pszEntry, rc = VERR_NO_MEMORY); 346 347 if (i > 0) 348 { 349 rc = RTStrAAppend(&pszURL, "\n"); /* Separate entries with a newline. */ 350 AssertRCBreak(rc); 351 } 352 353 rc = RTStrAAppend(&pszURL, pszEntry); 354 AssertRCBreak(rc); 355 356 RTStrFree(pszEntry); 357 } 358 339 char *pszData; 340 size_t cbData; 341 rc = ShClTransferHttpConvertToStringList(pSrv, pTransfer, &pszData, &cbData); 359 342 if (RT_SUCCESS(rc)) 360 343 { 361 *ppv = pszURL; 362 *pcb = strlen(pszURL) + 1 /* Include terminator */; 363 364 LogFlowFunc(("URL is '%s'\n", pszURL)); 365 366 /* ppv has ownership of pszURL. */ 344 *ppv = pszData; 345 *pcb = cbData; 346 /* ppv has ownership of pszData now. */ 367 347 } 368 348 }
Note:
See TracChangeset
for help on using the changeset viewer.