VirtualBox

Changeset 68458 in vbox for trunk/src/VBox/Additions/x11


Ignore:
Timestamp:
Aug 18, 2017 10:31:10 AM (7 years ago)
Author:
vboxsync
Message:

Introducing macros for initializing the VBoxGuestHGCMCallInfo structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/check3d.cpp

    r64114 r68458  
    3030{
    3131    int rc;
    32     HGCMCLIENTID cClientID;
     32    HGCMCLIENTID idClient;
    3333    CRVBOXHGCMGETCAPS caps;
    3434    LogFlowFunc(("\n"));
     
    4040    if (RT_FAILURE(rc))
    4141        exit(1);
    42     rc = VbglR3HGCMConnect("VBoxSharedCrOpenGL", &cClientID);
     42    rc = VbglR3HGCMConnect("VBoxSharedCrOpenGL", &idClient);
    4343    if (RT_FAILURE(rc))
    4444        exit(1);
    45     caps.hdr.result      = VERR_WRONG_ORDER;
    46     caps.hdr.u32ClientID = cClientID;
    47     caps.hdr.u32Function = SHCRGL_GUEST_FN_GET_CAPS_LEGACY;
    48     caps.hdr.cParms      = SHCRGL_CPARMS_GET_CAPS_LEGACY;
    4945
     46    VBGL_HGCM_HDR_INIT(&caps.hdr, idClient, SHCRGL_GUEST_FN_GET_CAPS_LEGACY, SHCRGL_CPARMS_GET_CAPS_LEGACY);
    5047    caps.Caps.type       = VMMDevHGCMParmType_32bit;
    5148    caps.Caps.u.value32  = 0;
     
    5653    if (caps.Caps.u.value32 & CR_VBOX_CAP_HOST_CAPS_NOT_SUFFICIENT)
    5754        exit(1);
    58     VbglR3HGCMDisconnect(cClientID);
     55    VbglR3HGCMDisconnect(idClient);
    5956    VbglR3Term();
    6057    LogFlowFunc(("returning %Rrc\n", rc));
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