VirtualBox

Changeset 75739 in vbox


Ignore:
Timestamp:
Nov 26, 2018 3:54:49 PM (6 years ago)
Author:
vboxsync
Message:

HGCM: Make hgcmsvc.h more C-friendly.
bugref:9172: Shared folder performance tuning
Regression fix from last change. The new getters and setters are no longer
ifdef-ed C++ only, so no mixed declarations and code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/hgcmsvc.h

    r75737 r75739  
    195195static inline int HGCMSvcGetU32(struct VBOXHGCMSVCPARM *pParm, uint32_t *pu32)
    196196{
     197    int rc = VINF_SUCCESS;
    197198    AssertPtrReturn(pParm, VERR_INVALID_POINTER);
    198199    AssertPtrReturn(pParm, VERR_INVALID_POINTER);
    199200    AssertPtrReturn(pu32, VERR_INVALID_POINTER);
    200     int rc = VINF_SUCCESS;
    201201    if (pParm->type != VBOX_HGCM_SVC_PARM_32BIT)
    202202        rc = VERR_INVALID_PARAMETER;
     
    209209static inline int HGCMSvcGetU64(struct VBOXHGCMSVCPARM *pParm, uint64_t *pu64)
    210210{
     211    int rc = VINF_SUCCESS;
    211212    AssertPtrReturn(pParm, VERR_INVALID_POINTER);
    212213    AssertPtrReturn(pParm, VERR_INVALID_POINTER);
    213214    AssertPtrReturn(pu64, VERR_INVALID_POINTER);
    214     int rc = VINF_SUCCESS;
    215215    if (pParm->type != VBOX_HGCM_SVC_PARM_64BIT)
    216216        rc = VERR_INVALID_PARAMETER;
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