VirtualBox

Ignore:
Timestamp:
Apr 24, 2025 10:08:54 AM (4 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168604
Message:

libs/xpcom,Main/glue,++: Bake the automatic re-registration of XPCOM components (in the components directory) into the NS_InitXPCOM2 call to avoid the problem of VBoxXPCOMIPCC.so/dylib being engaged at the end of NS_InitXPCOM2 and unable to re-register if this is done later by the client code. Added a fFlagsInit parameter to indicate whether this auto reg behaviour is required or not and renamed NS_InitXPCOM2 to NS_InitXPCOM2Ex (the latter to prevent confusion). bugref:10896 ticketref:22193

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/components/nsComponentManager.cpp

    r109066 r109067  
    35783578    {
    35793579        // XPCOM needs initialization.
    3580         rv = NS_InitXPCOM2(nsnull, nsnull, nsnull);
     3580        rv = NS_InitXPCOM2Ex(nsnull, nsnull, nsnull, 0);
    35813581    }
    35823582
     
    35983598    {
    35993599        // XPCOM needs initialization.
    3600         nsresult rv = NS_InitXPCOM2(nsnull, nsnull, nsnull);
     3600        nsresult rv = NS_InitXPCOM2Ex(nsnull, nsnull, nsnull, 0);
    36013601        if (NS_FAILED(rv))
    36023602            return rv;
     
    36293629#else /* !VBOX */
    36303630        // XPCOM needs initialization.
    3631         rv = NS_InitXPCOM2(nsnull, nsnull, nsnull);
     3631        rv = NS_InitXPCOM2Ex(nsnull, nsnull, nsnull, 0);
    36323632#endif /* !VBOX */
    36333633    }
     
    36513651    {
    36523652        // XPCOM needs initialization.
    3653         rv = NS_InitXPCOM2(nsnull, nsnull, nsnull);
     3653        rv = NS_InitXPCOM2Ex(nsnull, nsnull, nsnull, 0);
    36543654    }
    36553655
     
    36743674    {
    36753675        // XPCOM needs initialization.
    3676         rv = NS_InitXPCOM2(nsnull, nsnull, nsnull);
     3676        rv = NS_InitXPCOM2Ex(nsnull, nsnull, nsnull, 0);
    36773677    }
    36783678
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