Changeset 102818 in vbox for trunk/src/VBox/HostServices/SharedClipboard
- 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/HostServices/SharedClipboard/VBoxSharedClipboardSvc-x11.cpp
r102468 r102818 620 620 if (RT_SUCCESS(rc)) 621 621 { 622 char *pszURL = NULL; 623 624 uint64_t const cRoots = ShClTransferRootsCount(pTransfer); 625 for (uint32_t i = 0; i < cRoots; i++) 626 { 627 char *pszEntry = ShClTransferHttpServerGetUrlA(pHttpSrv, ShClTransferGetID(pTransfer), i /* Entry index */); 628 AssertPtrBreakStmt(pszEntry, rc = VERR_NO_MEMORY); 629 630 if (i > 0) 631 { 632 rc = RTStrAAppend(&pszURL, "\n"); /* Separate entries with a newline. */ 633 AssertRCBreak(rc); 634 } 635 636 rc = RTStrAAppend(&pszURL, pszEntry); 637 AssertRCBreak(rc); 638 639 RTStrFree(pszEntry); 640 } 641 622 char *pszData; 623 size_t cbData; 624 rc = ShClTransferHttpConvertToStringList(pHttpSrv, pTransfer, &pszData, &cbData); 642 625 if (RT_SUCCESS(rc)) 643 626 { 644 *ppv = pszURL; 645 *pcb = strlen(pszURL) + 1 /* Include terminator */; 646 647 LogFlowFunc(("URL is '%s'\n", pszURL)); 648 649 /* ppv has ownership of pszURL. */ 627 *ppv = pszData; 628 *pcb = cbData; 629 /* ppv has ownership of pszData now. */ 650 630 } 651 631 }
Note:
See TracChangeset
for help on using the changeset viewer.