VirtualBox

Changeset 6264 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 7, 2008 3:43:35 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
27106
Message:

FE/Qt: Fixed a regression of #2579: Initialize RTR3Init with fInitSUPLib=true if we are starting a VM.

File:
1 edited

Legend:

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

    r6200 r6264  
    112112int main (int argc, char **argv)
    113113{
    114     /* initialize VBox Runtime */
    115     RTR3Init (false, ~(size_t)0);
     114    /* Initialize VBox Runtime. Initialize the Suplib+GC as well only if we
     115     * are really about to start a VM. Don't do this if we are only starting
     116     * the selector window. */
     117    bool fInitGC = false;
     118    for (int i = 0; i < argc; i++)
     119    {
     120        if (!::strcmp(argv[i], "-startvm" ))
     121        {
     122            fInitGC = true;
     123            break;
     124        }
     125    }
     126    RTR3Init (fInitGC, ~(size_t)0);
    116127
    117128    LogFlowFuncEnter();
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