Changeset 90126 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Jul 9, 2021 2:15:18 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/efi/efivarstorevfs.cpp
r90125 r90126 715 715 return VINF_SUCCESS; 716 716 717 if ((uint32_t)cbData != cbData) 718 return VERR_FILE_TOO_BIG; 719 717 720 int rc = VINF_SUCCESS; 718 721 if (cbData < pVar->cbData) … … 724 727 pVar->pvData = pvNew; 725 728 pVarStore->cbVarData -= pVar->cbData - cbData; 726 pVar->cbData = cbData;729 pVar->cbData = (uint32_t)cbData; 727 730 } 728 731 else … … 739 742 pVar->pvData = pvNew; 740 743 pVarStore->cbVarData += cbData - pVar->cbData; 741 pVar->cbData = cbData;744 pVar->cbData = (uint32_t)cbData; 742 745 } 743 746 else … … 1069 1072 { 1070 1073 RT_NOREF(pvThis); 1071 *pcbMax = INT64_MAX; /** @todo */1074 *pcbMax = UINT32_MAX; 1072 1075 return VINF_SUCCESS; 1073 1076 }
Note:
See TracChangeset
for help on using the changeset viewer.