VirtualBox

Ignore:
Timestamp:
Aug 29, 2008 2:21:03 PM (16 years ago)
Author:
vboxsync
Message:

IPRT: RTR3Init cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/main.cpp

    r11737 r11822  
    272272int main (int argc, char **argv, char **envp)
    273273{
    274     /* Initialize VBox Runtime. Initialize the Suplib+GC as well only if we
     274    /* Initialize VBox Runtime. Initialize the SUPLib as well only if we
    275275     * are really about to start a VM. Don't do this if we are only starting
    276276     * the selector window. */
    277     bool fInitGC = false;
     277    bool fInitSUPLib = false;
    278278    for (int i = 0; i < argc; i++)
    279279    {
    280280        if (!::strcmp (argv[i], "-startvm" ))
    281281        {
    282             fInitGC = true;
     282            fInitSUPLib = true;
    283283            break;
    284284        }
    285285    }
    286     RTR3Init (fInitGC, ~(size_t)0);
     286
     287    if (!fInitSUPLib)
     288        RTR3Init();
     289    else
     290        RTR3InitAndSUPLib();
    287291
    288292    return TrustedMain (argc, argv, envp);
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