VirtualBox

Changeset 58556 in vbox for trunk


Ignore:
Timestamp:
Nov 4, 2015 9:05:29 AM (9 years ago)
Author:
vboxsync
Message:

Installer/win/Stub/VBoxStub.cpp: Don't start the installation when showing the version information or help dialogs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/win/Stub/VBoxStub.cpp

    r57358 r58556  
    881881    /* Parse the parameters. */
    882882    int ch;
    883     bool fParsingDone = false;
     883    bool fExitEarly = false;
    884884    RTGETOPTUNION ValueUnion;
    885885    RTGETOPTSTATE GetState;
     
    887887    while (   (ch = RTGetOpt(&GetState, &ValueUnion))
    888888           && rcExit == RTEXITCODE_SUCCESS
    889            && !fParsingDone)
     889           && !fExitEarly)
    890890    {
    891891        switch (ch)
     
    937937                         VBOX_VERSION_MAJOR, VBOX_VERSION_MINOR, VBOX_VERSION_BUILD,
    938938                         VBOX_SVN_REV);
    939                 fParsingDone = true;
     939                fExitEarly = true;
    940940                break;
    941941
     
    962962                         VBOX_STUB_TITLE, VBOX_VERSION_MAJOR, VBOX_VERSION_MINOR, VBOX_VERSION_BUILD, VBOX_SVN_REV,
    963963                         argv[0], argv[0]);
    964                 fParsingDone = true;
     964                fExitEarly = true;
    965965                break;
    966966
     
    993993        }
    994994    }
     995
     996    /* Check if we can bail out early. */
     997    if (fExitEarly)
     998        return rcExit;
    995999
    9961000    if (rcExit != RTEXITCODE_SUCCESS)
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