- Timestamp:
- Apr 6, 2009 6:08:04 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/hardenedmain.cpp
r17863 r18789 20 20 */ 21 21 22 #include <string.h> 22 23 #include <VBox/sup.h> 23 24 … … 30 31 uint32_t fFlags = SUPSECMAIN_FLAGS_DONT_OPEN_DEV; 31 32 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")) 41 35 { 42 36 fFlags &= ~SUPSECMAIN_FLAGS_DONT_OPEN_DEV; -
trunk/src/VBox/Frontends/VirtualBox/src/main.cpp
r18762 r18789 507 507 { 508 508 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")) 513 510 { 514 511 fInitSUPLib = true;
Note:
See TracChangeset
for help on using the changeset viewer.