Changeset 73097 in vbox for trunk/src/VBox/Frontends/VBoxAutostart
- Timestamp:
- Jul 12, 2018 9:06:33 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 123672
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxAutostart/VBoxAutostartCfg.cpp
r69500 r73097 556 556 PCFGAST pCfgAst = NULL; 557 557 558 pCfgAst = (PCFGAST)RTMemAllocZ(RT_ OFFSETOF(CFGAST, u.KeyValue.aszValue[pToken->u.Id.cchToken + 1]));558 pCfgAst = (PCFGAST)RTMemAllocZ(RT_UOFFSETOF_DYN(CFGAST, u.KeyValue.aszValue[pToken->u.Id.cchToken + 1])); 559 559 if (!pCfgAst) 560 560 return VERR_NO_MEMORY; … … 593 593 { 594 594 unsigned cAstNodesMax = 10; 595 PCFGAST pCfgAst = (PCFGAST)RTMemAllocZ(RT_ OFFSETOF(CFGAST, u.Compound.apAstNodes[cAstNodesMax]));595 PCFGAST pCfgAst = (PCFGAST)RTMemAllocZ(RT_UOFFSETOF_DYN(CFGAST, u.Compound.apAstNodes[cAstNodesMax])); 596 596 if (!pCfgAst) 597 597 return VERR_NO_MEMORY; … … 653 653 cAstNodesMax += 10; 654 654 655 PCFGAST pCfgAstNew = (PCFGAST)RTMemRealloc(pCfgAst, RT_ OFFSETOF(CFGAST, u.Compound.apAstNodes[cAstNodesMax]));655 PCFGAST pCfgAstNew = (PCFGAST)RTMemRealloc(pCfgAst, RT_UOFFSETOF_DYN(CFGAST, u.Compound.apAstNodes[cAstNodesMax])); 656 656 if (!pCfgAstNew) 657 657 rc = VERR_NO_MEMORY;
Note:
See TracChangeset
for help on using the changeset viewer.