VirtualBox

Changeset 84996 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jun 29, 2020 4:21:34 PM (5 years ago)
Author:
vboxsync
Message:

Shared Clipboard/Transfers: Removed some superfluous HGCM parameters. Untested.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibClipboard.cpp

    r84733 r84996  
    817817    Msg.enmType.SetUInt32(VBOX_SHCL_REPLYMSGTYPE_TRANSFER_STATUS);
    818818    Msg.rc.SetUInt32((uint32_t )rcTransfer); /* int vs. uint32_t */
    819     Msg.cbPayload.SetUInt32(0);
    820819    Msg.pvPayload.SetPtr(NULL, 0);
    821820
     
    986985    Msg.uContext.SetUInt64(pCtx->idContext);
    987986    Msg.fList.SetUInt32(0);
    988     Msg.cbFilter.SetUInt32(pOpenParms->cbFilter);
    989987    Msg.pvFilter.SetPtr(pOpenParms->pszFilter, pOpenParms->cbFilter);
    990     Msg.cbPath.SetUInt32(pOpenParms->cbPath);
    991988    Msg.pvPath.SetPtr(pOpenParms->pszPath, pOpenParms->cbPath);
    992989    Msg.uHandle.SetUInt64(0);
     
    10221019    Msg.uContext.SetUInt64(VBOX_SHCL_HOST_MSG_TRANSFER_LIST_OPEN);
    10231020    Msg.fList.SetUInt32(0);
    1024     Msg.cbPath.SetUInt32(pOpenParms->cbPath);
    10251021    Msg.pvPath.SetPtr(pOpenParms->pszPath, pOpenParms->cbPath);
    1026     Msg.cbFilter.SetUInt32(pOpenParms->cbFilter);
    10271022    Msg.pvFilter.SetPtr(pOpenParms->pszFilter, pOpenParms->cbFilter);
    10281023    Msg.uHandle.SetUInt64(0);
     
    10341029        if (RT_SUCCESS(rc))
    10351030            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);
    10401031    }
    10411032
     
    10651056    Msg.enmType.SetUInt32(VBOX_SHCL_REPLYMSGTYPE_LIST_OPEN);
    10661057    Msg.rc.SetUInt32((uint32_t)rcReply); /** int vs. uint32_t */
    1067     Msg.cbPayload.SetUInt32(0);
    10681058    Msg.pvPayload.SetPtr(NULL, 0);
    10691059
     
    11301120    Msg.enmType.SetUInt32(VBOX_SHCL_REPLYMSGTYPE_LIST_CLOSE);
    11311121    Msg.rc.SetUInt32((uint32_t)rcReply); /** int vs. uint32_t */
    1132     Msg.cbPayload.SetUInt32(0);
    11331122    Msg.pvPayload.SetPtr(NULL, 0);
    11341123
     
    14141403    Msg.uContext.SetUInt64(VBOX_SHCL_HOST_MSG_TRANSFER_OBJ_OPEN);
    14151404    Msg.uHandle.SetUInt64(0);
    1416     Msg.cbPath.SetUInt32(pCreateParms->cbPath);
    14171405    Msg.szPath.SetPtr(pCreateParms->pszPath, pCreateParms->cbPath);
    14181406    Msg.fCreate.SetUInt32(0);
     
    14221410    {
    14231411        rc = Msg.uContext.GetUInt64(&pCtx->idContext);
    1424         if (RT_SUCCESS(rc))
    1425             rc = Msg.cbPath.GetUInt32(&pCreateParms->cbPath);
    14261412        if (RT_SUCCESS(rc))
    14271413            rc = Msg.fCreate.GetUInt32(&pCreateParms->fCreate);
     
    14531439    Msg.enmType.SetUInt32(VBOX_SHCL_REPLYMSGTYPE_OBJ_OPEN);
    14541440    Msg.rc.SetUInt32((uint32_t)rcReply); /** int vs. uint32_t */
    1455     Msg.cbPayload.SetUInt32(0);
    14561441    Msg.pvPayload.SetPtr(NULL, 0);
    14571442
     
    14871472    Msg.uContext.SetUInt64(pCtx->idContext);
    14881473    Msg.uHandle.SetUInt64(0);
    1489     Msg.cbPath.SetUInt32(pCreateParms->cbPath);
    14901474    Msg.szPath.SetPtr((void *)pCreateParms->pszPath, pCreateParms->cbPath);
    14911475    Msg.fCreate.SetUInt32(pCreateParms->fCreate);
     
    15551539    Msg.enmType.SetUInt32(VBOX_SHCL_REPLYMSGTYPE_OBJ_CLOSE);
    15561540    Msg.rc.SetUInt32((uint32_t)rcReply); /** int vs. uint32_t */
    1557     Msg.cbPayload.SetUInt32(0);
    15581541    Msg.pvPayload.SetPtr(NULL, 0);
    15591542
     
    17101693    Msg.uHandle.SetUInt64(hObj);
    17111694    Msg.pvData.SetPtr(pvData, cbData);
    1712     Msg.cbData.SetUInt32(cbData);
    17131695    Msg.pvChecksum.SetPtr(NULL, 0);
    1714     Msg.cbChecksum.SetUInt32(0);
    17151696
    17161697    int rc = VbglR3HGCMCall(&Msg.hdr, sizeof(Msg));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette