Changeset 100481 in vbox
- Timestamp:
- Jul 10, 2023 4:56:48 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/SharedClipboard/clipboard-transfers.cpp
r100467 r100481 680 680 AssertPtrReturn(pListEntry, false); 681 681 682 if (!shclTransferListEntryNameIsValid(pListEntry->pszName, pListEntry->cbName)) 683 return false; 684 685 if (pListEntry->cbInfo) /* cbInfo / pvInfo is optional. */ 686 { 687 if (!pListEntry->pvInfo) 688 return false; 689 } 690 691 return true; 682 bool fValid = false; 683 684 if (shclTransferListEntryNameIsValid(pListEntry->pszName, pListEntry->cbName)) 685 { 686 fValid = pListEntry->cbInfo == 0 /* cbInfo / pvInfo is optional. */ 687 || pListEntry->pvInfo != NULL; 688 } 689 690 if (!fValid) 691 LogRel2(("Shared Clipboard: List entry '%s' is invalid\n", pListEntry->pszName)); 692 693 return fValid; 692 694 } 693 695 … … 897 899 rc = VERR_NOT_SUPPORTED; 898 900 901 if (RT_FAILURE(rc)) 902 LogRel(("Shared Clipboard: Opening object '%s' (flags %#x) failed with %Rrc\n", 903 pOpenCreateParms->pszPath, pOpenCreateParms->fCreate, rc)); 904 899 905 LogFlowFuncLeaveRC(rc); 900 906 return rc; … … 917 923 else 918 924 rc = VERR_NOT_SUPPORTED; 925 926 if (RT_FAILURE(rc)) 927 LogRel(("Shared Clipboard: Reading object 0x%x failed with %Rrc\n", hObj, rc)); 919 928 920 929 LogFlowFuncLeaveRC(rc); … … 948 957 rc = VERR_NOT_SUPPORTED; 949 958 959 if (RT_FAILURE(rc)) 960 LogRel(("Shared Clipboard: Reading object 0x%x failed with %Rrc\n", hObj, rc)); 961 950 962 LogFlowFuncLeaveRC(rc); 951 963 return rc; … … 976 988 else 977 989 rc = VERR_NOT_SUPPORTED; 990 991 if (RT_FAILURE(rc)) 992 LogRel(("Shared Clipboard: Writing object 0x%x failed with %Rrc\n", hObj, rc)); 978 993 979 994 LogFlowFuncLeaveRC(rc); … … 1303 1318 rc = VERR_NOT_SUPPORTED; 1304 1319 1320 if (RT_FAILURE(rc)) 1321 LogRel(("Shared Clipboard: Opening list '%s' (fiter '%s', flags %#x) failed with %Rrc\n", 1322 pOpenParms->pszPath, pOpenParms->pszFilter, pOpenParms->fList, rc)); 1323 1305 1324 LogFlowFuncLeaveRC(rc); 1306 1325 return rc; … … 1327 1346 rc = VERR_NOT_SUPPORTED; 1328 1347 1348 if (RT_FAILURE(rc)) 1349 LogRel(("Shared Clipboard: Closing list 0x%x entry failed with %Rrc\n", hList, rc)); 1350 1329 1351 LogFlowFuncLeaveRC(rc); 1330 1352 return rc; … … 1353 1375 rc = VERR_NOT_SUPPORTED; 1354 1376 1377 if (RT_FAILURE(rc)) 1378 LogRel(("Shared Clipboard: Reading list header list 0x%x entry failed with %Rrc\n", hList, rc)); 1379 1355 1380 LogFlowFuncLeaveRC(rc); 1356 1381 return rc; … … 1420 1445 rc = VERR_NOT_SUPPORTED; 1421 1446 1447 if (RT_FAILURE(rc)) 1448 LogRel(("Shared Clipboard: Reading list for list 0x%x entry failed with %Rrc\n", hList, rc)); 1449 1422 1450 LogFlowFuncLeaveRC(rc); 1423 1451 return rc; … … 1443 1471 rc = pTransfer->ProviderIface.pfnListEntryWrite(&pTransfer->ProviderCtx, hList, pEntry); 1444 1472 #endif 1473 1474 if (RT_FAILURE(rc)) 1475 LogRel(("Shared Clipboard: Writing list entry to list 0x%x failed with %Rrc\n", hList, rc)); 1445 1476 1446 1477 LogFlowFuncLeaveRC(rc);
Note:
See TracChangeset
for help on using the changeset viewer.