VirtualBox

Changeset 100470 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 10, 2023 3:18:12 PM (17 months ago)
Author:
vboxsync
Message:

Shared Clipboard: Fixed returning list handle for VBOX_SHCL_GUEST_FN_LIST_OPEN, plus added more checks. bugref:9437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-transfers.cpp

    r100411 r100470  
    17761776        case VBOX_SHCL_GUEST_FN_LIST_OPEN:
    17771777        {
     1778            if (cParms != VBOX_SHCL_CPARMS_LIST_OPEN)
     1779                break;
     1780
     1781            ASSERT_GUEST_RETURN(aParms[1].type == VBOX_HGCM_SVC_PARM_32BIT, VERR_WRONG_PARAMETER_TYPE); /* List flags */
     1782            ASSERT_GUEST_RETURN(aParms[2].type == VBOX_HGCM_SVC_PARM_PTR,   VERR_WRONG_PARAMETER_TYPE); /* Filter string */
     1783            ASSERT_GUEST_RETURN(aParms[3].type == VBOX_HGCM_SVC_PARM_PTR,   VERR_WRONG_PARAMETER_TYPE); /* Path */
     1784            ASSERT_GUEST_RETURN(aParms[4].type == VBOX_HGCM_SVC_PARM_64BIT, VERR_WRONG_PARAMETER_TYPE); /* List handle (output) */
     1785
    17781786            SHCLLISTOPENPARMS listOpenParms;
    17791787            rc = shClSvcTransferGetListOpen(cParms, aParms, &listOpenParms);
     
    17851793                {
    17861794                    /* Return list handle. */
    1787                     HGCMSvcSetU64(&aParms[6], hList);
     1795                    HGCMSvcSetU64(&aParms[4], hList);
    17881796                }
    17891797            }
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