VirtualBox

Changeset 64895 in vbox


Ignore:
Timestamp:
Dec 16, 2016 1:43:34 AM (8 years ago)
Author:
vboxsync
Message:

iprt/asn1-generator-pass.h: Fixed bug in new _InsertEx method and bugs in PCHOICE Clone and Setter methods.

File:
1 edited

Legend:

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

    r64888 r64895  
    738738    RTASN1TMPL_BEGIN_COMMON(); \
    739739    RTAsn1Dummy_InitEx(&pThis->Dummy); \
     740    pThis->Dummy.Asn1Core.pOps = &RT_CONCAT3(g_,RTASN1TMPL_INT_NAME,_Vtable); \
    740741    RTAsn1MemInitAllocation(&pThis->Allocation, pAllocator); \
    741742    int rc; \
     
    865866    RT_CONCAT(RTASN1TMPL_EXT_NAME,_Delete)(pThis); /* See _Init. */ \
    866867    RTAsn1Dummy_InitEx(&pThis->Dummy); \
     868    pThis->Dummy.Asn1Core.pOps = &RT_CONCAT3(g_,RTASN1TMPL_INT_NAME,_Vtable); \
    867869    RTAsn1MemInitAllocation(&pThis->Allocation, pAllocator); \
    868870    pThis->enmChoice = a_enmChoice; \
     
    888890    RT_CONCAT(RTASN1TMPL_EXT_NAME,_Delete)(pThis); /* See _Init. */ \
    889891    RTAsn1Dummy_InitEx(&pThis->Dummy); \
     892    pThis->Dummy.Asn1Core.pOps = &RT_CONCAT3(g_,RTASN1TMPL_INT_NAME,_Vtable); \
    890893    RTAsn1MemInitAllocation(&pThis->Allocation, pAllocator); \
    891894    pThis->enmChoice = a_enmChoice; \
     
    992995            if (RT_SUCCESS(rc)) \
    993996            { \
     997                pThis->cItems = cItems + 1; \
     998                \
    994999                /* If not inserting at the end of the array, shift existing items out of the way and insert the new as req. */ \
    9951000                if (iPosition != cItems) \
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