VirtualBox

Ignore:
Timestamp:
Dec 9, 2019 7:48:38 PM (5 years ago)
Author:
vboxsync
Message:

SharedClipboardSvc,Vbgl: Looked at the connect and feature exchange stuff. Decided to make the connect one always fail, that way the beta and rc additions should not try make use of any of the new features and we should be free to do whatever we like. Need to circle back and drop the _61B parameter count variants later. bugref:9437

File:
1 edited

Legend:

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

    r82515 r82525  
    293293ClipboardClientQueue g_listClientsDeferred;
    294294
    295 /** Host feature mask for VBOX_SHCL_GUEST_FN_REPORT_FEATURES/VBOX_SHCL_GUEST_FN_QUERY_FEATURES. */
    296 static uint64_t const g_fHostFeatures0 = VBOX_SHCL_HF_NONE;
     295/** Host feature mask (VBOX_SHCL_HF_0_XXX) for VBOX_SHCL_GUEST_FN_REPORT_FEATURES
     296 * and VBOX_SHCL_GUEST_FN_QUERY_FEATURES. */
     297static uint64_t const g_fHostFeatures0 = VBOX_SHCL_HF_0_CONTEXT_ID;
    297298
    298299
     
    18491850
    18501851        case VBOX_SHCL_GUEST_FN_CONNECT:
    1851         {
    1852             if (cParms != VBOX_SHCL_CPARMS_CONNECT)
    1853             {
    1854                 rc = VERR_INVALID_PARAMETER;
    1855             }
    1856             else if (   paParms[0].type != VBOX_HGCM_SVC_PARM_32BIT  /* cbChunkSize */
    1857                      || paParms[1].type != VBOX_HGCM_SVC_PARM_32BIT  /* enmCompression */
    1858                      || paParms[2].type != VBOX_HGCM_SVC_PARM_32BIT) /* enmChecksumType */
    1859             {
    1860                 rc = VERR_INVALID_PARAMETER;
    1861             }
    1862             else if (ShClSvcGetMode() == VBOX_SHCL_MODE_OFF)
    1863             {
    1864                 rc = VERR_ACCESS_DENIED;
    1865             }
    1866             else
    1867             {
    1868                 /* Report back supported chunk size to the guest. */
    1869                 HGCMSvcSetU32(&paParms[0], _64K); /* Chunk size */ /** @todo Make chunk size dynamic. */
    1870 
    1871                 rc = VINF_SUCCESS;
    1872             }
     1852            LogRel(("6.1.0 beta or rc additions detected. Please upgrade!\n"));
     1853            rc = VERR_NOT_IMPLEMENTED;
    18731854            break;
    1874         }
    18751855
    18761856        case VBOX_SHCL_GUEST_FN_REPORT_FEATURES:
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