VirtualBox

Changeset 95594 in vbox for trunk/include


Ignore:
Timestamp:
Jul 12, 2022 2:19:36 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
152231
Message:

IPRT/asn1-genrator-pass.h: RTASN1TMPL_BEGIN_PCHOICE must initialize the allocator when emitting the _Init code. bugref:8691

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/asn1-generator-pass.h

    r93115 r95594  
    363363
    364364/* No choice, just an empty, non-present structure. */
    365 # define RTASN1TMPL_BEGIN_PCHOICE() RTASN1TMPL_BEGIN_COMMON(); int rc = VINF_SUCCESS
     365# define RTASN1TMPL_BEGIN_PCHOICE() \
     366    RTASN1TMPL_BEGIN_COMMON(); \
     367    RTAsn1MemInitAllocation(&pThis->Allocation, pAllocator); \
     368    int rc = VINF_SUCCESS
    366369# define RTASN1TMPL_PCHOICE_ITAG_EX(a_uTag, a_enmChoice, a_PtrName, a_Name, a_Type, a_Api, a_fClue, a_Constraints) \
    367370                                                                                                    do { } while (0)
    368371# define RTASN1TMPL_PCHOICE_XTAG_EX(a_uTag, a_enmChoice, a_PtrTnNm, a_CtxTagN, a_Name, a_Type, a_Api, a_Constraints) \
    369372                                                                                                    do { } while (0)
    370 # define RTASN1TMPL_END_PCHOICE()   RTASN1TMPL_END_COMMON()
     373# define RTASN1TMPL_END_PCHOICE() RTASN1TMPL_END_COMMON()
    371374
    372375
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette