Changeset 84996 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Jun 29, 2020 4:21:34 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibClipboard.cpp
r84733 r84996 817 817 Msg.enmType.SetUInt32(VBOX_SHCL_REPLYMSGTYPE_TRANSFER_STATUS); 818 818 Msg.rc.SetUInt32((uint32_t )rcTransfer); /* int vs. uint32_t */ 819 Msg.cbPayload.SetUInt32(0);820 819 Msg.pvPayload.SetPtr(NULL, 0); 821 820 … … 986 985 Msg.uContext.SetUInt64(pCtx->idContext); 987 986 Msg.fList.SetUInt32(0); 988 Msg.cbFilter.SetUInt32(pOpenParms->cbFilter);989 987 Msg.pvFilter.SetPtr(pOpenParms->pszFilter, pOpenParms->cbFilter); 990 Msg.cbPath.SetUInt32(pOpenParms->cbPath);991 988 Msg.pvPath.SetPtr(pOpenParms->pszPath, pOpenParms->cbPath); 992 989 Msg.uHandle.SetUInt64(0); … … 1022 1019 Msg.uContext.SetUInt64(VBOX_SHCL_HOST_MSG_TRANSFER_LIST_OPEN); 1023 1020 Msg.fList.SetUInt32(0); 1024 Msg.cbPath.SetUInt32(pOpenParms->cbPath);1025 1021 Msg.pvPath.SetPtr(pOpenParms->pszPath, pOpenParms->cbPath); 1026 Msg.cbFilter.SetUInt32(pOpenParms->cbFilter);1027 1022 Msg.pvFilter.SetPtr(pOpenParms->pszFilter, pOpenParms->cbFilter); 1028 1023 Msg.uHandle.SetUInt64(0); … … 1034 1029 if (RT_SUCCESS(rc)) 1035 1030 rc = Msg.fList.GetUInt32(&pOpenParms->fList); 1036 if (RT_SUCCESS(rc))1037 rc = Msg.cbFilter.GetUInt32(&pOpenParms->cbFilter);1038 if (RT_SUCCESS(rc))1039 rc = Msg.cbPath.GetUInt32(&pOpenParms->cbPath);1040 1031 } 1041 1032 … … 1065 1056 Msg.enmType.SetUInt32(VBOX_SHCL_REPLYMSGTYPE_LIST_OPEN); 1066 1057 Msg.rc.SetUInt32((uint32_t)rcReply); /** int vs. uint32_t */ 1067 Msg.cbPayload.SetUInt32(0);1068 1058 Msg.pvPayload.SetPtr(NULL, 0); 1069 1059 … … 1130 1120 Msg.enmType.SetUInt32(VBOX_SHCL_REPLYMSGTYPE_LIST_CLOSE); 1131 1121 Msg.rc.SetUInt32((uint32_t)rcReply); /** int vs. uint32_t */ 1132 Msg.cbPayload.SetUInt32(0);1133 1122 Msg.pvPayload.SetPtr(NULL, 0); 1134 1123 … … 1414 1403 Msg.uContext.SetUInt64(VBOX_SHCL_HOST_MSG_TRANSFER_OBJ_OPEN); 1415 1404 Msg.uHandle.SetUInt64(0); 1416 Msg.cbPath.SetUInt32(pCreateParms->cbPath);1417 1405 Msg.szPath.SetPtr(pCreateParms->pszPath, pCreateParms->cbPath); 1418 1406 Msg.fCreate.SetUInt32(0); … … 1422 1410 { 1423 1411 rc = Msg.uContext.GetUInt64(&pCtx->idContext); 1424 if (RT_SUCCESS(rc))1425 rc = Msg.cbPath.GetUInt32(&pCreateParms->cbPath);1426 1412 if (RT_SUCCESS(rc)) 1427 1413 rc = Msg.fCreate.GetUInt32(&pCreateParms->fCreate); … … 1453 1439 Msg.enmType.SetUInt32(VBOX_SHCL_REPLYMSGTYPE_OBJ_OPEN); 1454 1440 Msg.rc.SetUInt32((uint32_t)rcReply); /** int vs. uint32_t */ 1455 Msg.cbPayload.SetUInt32(0);1456 1441 Msg.pvPayload.SetPtr(NULL, 0); 1457 1442 … … 1487 1472 Msg.uContext.SetUInt64(pCtx->idContext); 1488 1473 Msg.uHandle.SetUInt64(0); 1489 Msg.cbPath.SetUInt32(pCreateParms->cbPath);1490 1474 Msg.szPath.SetPtr((void *)pCreateParms->pszPath, pCreateParms->cbPath); 1491 1475 Msg.fCreate.SetUInt32(pCreateParms->fCreate); … … 1555 1539 Msg.enmType.SetUInt32(VBOX_SHCL_REPLYMSGTYPE_OBJ_CLOSE); 1556 1540 Msg.rc.SetUInt32((uint32_t)rcReply); /** int vs. uint32_t */ 1557 Msg.cbPayload.SetUInt32(0);1558 1541 Msg.pvPayload.SetPtr(NULL, 0); 1559 1542 … … 1710 1693 Msg.uHandle.SetUInt64(hObj); 1711 1694 Msg.pvData.SetPtr(pvData, cbData); 1712 Msg.cbData.SetUInt32(cbData);1713 1695 Msg.pvChecksum.SetPtr(NULL, 0); 1714 Msg.cbChecksum.SetUInt32(0);1715 1696 1716 1697 int rc = VbglR3HGCMCall(&Msg.hdr, sizeof(Msg));
Note:
See TracChangeset
for help on using the changeset viewer.