Changeset 100482 in vbox for trunk/src/VBox
- Timestamp:
- Jul 10, 2023 5:07:44 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/SharedClipboard/clipboard-transfers.cpp
r100481 r100482 452 452 int ShClTransferListEntryAlloc(PSHCLLISTENTRY *ppListEntry) 453 453 { 454 PSHCLLISTENTRY pListEntry = (PSHCLLISTENTRY)RTMemAlloc(sizeof(SHCLLISTENTRY)); 454 AssertPtrReturn(ppListEntry, VERR_INVALID_POINTER); 455 456 PSHCLLISTENTRY pListEntry = (PSHCLLISTENTRY)RTMemAllocZ(sizeof(SHCLLISTENTRY)); 455 457 if (!pListEntry) 456 458 return VERR_NO_MEMORY; 457 459 458 int rc; 459 460 size_t cbInfo = sizeof(SHCLFSOBJINFO); 461 void *pvInfo = RTMemAlloc(cbInfo); 462 if (pvInfo) 463 { 464 rc = ShClTransferListEntryInitEx(pListEntry, VBOX_SHCL_INFO_F_NONE, NULL /* pszName */, pvInfo, (uint32_t)cbInfo); 465 if (RT_SUCCESS(rc)) 466 *ppListEntry = pListEntry; 467 468 return rc; 469 } 470 else 471 rc = VERR_NO_MEMORY; 472 473 RTMemFree(pListEntry); 474 return rc; 460 *ppListEntry = pListEntry; 461 462 return VINF_SUCCESS; 475 463 } 476 464
Note:
See TracChangeset
for help on using the changeset viewer.