VirtualBox

Changeset 80636 in vbox


Ignore:
Timestamp:
Sep 6, 2019 4:53:03 PM (5 years ago)
Author:
vboxsync
Message:

VBox/hgcmsvc.h: Made HGCMSvcSSMR3Get() / HGCMSvcSSMR3Put() C-compliant.

File:
1 edited

Legend:

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

    r80634 r80636  
    466466DECLINLINE(int) HGCMSvcSSMR3Put(VBOXHGCMSVCPARM *pParm, PSSMHANDLE pSSM)
    467467{
     468    int rc;
     469
    468470    AssertPtrReturn(pParm, VERR_INVALID_POINTER);
    469471    AssertPtrReturn(pSSM,  VERR_INVALID_POINTER);
    470472
    471     int rc = SSMR3PutU32(pSSM, sizeof(VBOXHGCMSVCPARM));
     473    rc = SSMR3PutU32(pSSM, sizeof(VBOXHGCMSVCPARM));
    472474    AssertRCReturn(rc, rc);
    473475    rc = SSMR3PutU32(pSSM, pParm->type);
     
    505507DECLINLINE(int) HGCMSvcSSMR3Get(VBOXHGCMSVCPARM *pParm, PSSMHANDLE pSSM)
    506508{
     509    uint32_t cbParm;
     510    int rc;
     511
    507512    AssertPtrReturn(pParm, VERR_INVALID_POINTER);
    508513    AssertPtrReturn(pSSM,  VERR_INVALID_POINTER);
    509514
    510     uint32_t cbParm;
    511     int rc = SSMR3GetU32(pSSM, &cbParm);
     515    rc = SSMR3GetU32(pSSM, &cbParm);
    512516    AssertRCReturn(rc, rc);
    513517    AssertReturn(cbParm == sizeof(VBOXHGCMSVCPARM), VERR_SSM_DATA_UNIT_FORMAT_CHANGED);
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