VirtualBox

Changeset 18789 in vbox for trunk


Ignore:
Timestamp:
Apr 6, 2009 6:08:04 PM (16 years ago)
Author:
vboxsync
Message:

Fe/Qt: Check for --startvm in hardenedmain.cpp too; drop the extra new aliases for --startvm.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
2 edited

Legend:

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

    r17863 r18789  
    2020 */
    2121
     22#include <string.h>
    2223#include <VBox/sup.h>
    2324
     
    3031    uint32_t fFlags = SUPSECMAIN_FLAGS_DONT_OPEN_DEV;
    3132    for (int i = 1; i < argc; i++)
    32         if (   argv[i][0] == '-'
    33             && argv[i][1] == 's'
    34             && argv[i][2] == 't'
    35             && argv[i][3] == 'a'
    36             && argv[i][4] == 'r'
    37             && argv[i][5] == 't'
    38             && argv[i][6] == 'v'
    39             && argv[i][7] == 'm'
    40             && argv[i][8] == '\0')
     33        if (    !strcmp(argv[i], "--startvm")
     34            ||  !strcmp(argv[i], "-startvm"))
    4135        {
    4236            fFlags &= ~SUPSECMAIN_FLAGS_DONT_OPEN_DEV;
  • trunk/src/VBox/Frontends/VirtualBox/src/main.cpp

    r18762 r18789  
    507507    {
    508508        if (    !::strcmp(argv[i], "--startvm")
    509             ||  !::strcmp(argv[i], "-startvm")
    510             ||  !::strcmp(argv[i], "-s")
    511             ||  !::strcmp(argv[i], "--vm")
    512             ||  !::strcmp(argv[i], "-vm"))
     509            ||  !::strcmp(argv[i], "-startvm"))
    513510        {
    514511            fInitSUPLib = true;
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