Changeset 80636 in vbox
- Timestamp:
- Sep 6, 2019 4:53:03 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/hgcmsvc.h
r80634 r80636 466 466 DECLINLINE(int) HGCMSvcSSMR3Put(VBOXHGCMSVCPARM *pParm, PSSMHANDLE pSSM) 467 467 { 468 int rc; 469 468 470 AssertPtrReturn(pParm, VERR_INVALID_POINTER); 469 471 AssertPtrReturn(pSSM, VERR_INVALID_POINTER); 470 472 471 intrc = SSMR3PutU32(pSSM, sizeof(VBOXHGCMSVCPARM));473 rc = SSMR3PutU32(pSSM, sizeof(VBOXHGCMSVCPARM)); 472 474 AssertRCReturn(rc, rc); 473 475 rc = SSMR3PutU32(pSSM, pParm->type); … … 505 507 DECLINLINE(int) HGCMSvcSSMR3Get(VBOXHGCMSVCPARM *pParm, PSSMHANDLE pSSM) 506 508 { 509 uint32_t cbParm; 510 int rc; 511 507 512 AssertPtrReturn(pParm, VERR_INVALID_POINTER); 508 513 AssertPtrReturn(pSSM, VERR_INVALID_POINTER); 509 514 510 uint32_t cbParm; 511 int rc = SSMR3GetU32(pSSM, &cbParm); 515 rc = SSMR3GetU32(pSSM, &cbParm); 512 516 AssertRCReturn(rc, rc); 513 517 AssertReturn(cbParm == sizeof(VBOXHGCMSVCPARM), VERR_SSM_DATA_UNIT_FORMAT_CHANGED);
Note:
See TracChangeset
for help on using the changeset viewer.