Changeset 73192 in vbox
- Timestamp:
- Jul 17, 2018 8:24:51 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/main.cpp
r73191 r73192 606 606 } 607 607 608 #if !defined(VBOX_WITH_HARDENING) || defined(VBOX_GUI_WITH_SHARED_LIBRARY) && !defined(VBOX_RUNTIME_UI)608 #if !defined(VBOX_WITH_HARDENING) || (defined(VBOX_GUI_WITH_SHARED_LIBRARY) && !defined(VBOX_RUNTIME_UI)) 609 609 610 610 int main(int argc, char **argv, char **envp) … … 616 616 # endif /* VBOX_WS_X11 */ 617 617 618 /* Initialize VBox Runtime. 619 * Initialize the SUPLib as well only if we are really about to start a VM. 618 /* 619 * Initialize VBox Runtime. 620 */ 621 # if !defined(VBOX_GUI_WITH_SHARED_LIBRARY) || defined(VBOX_RUNTIME_UI) 622 /* Initialize the SUPLib as well only if we are really about to start a VM. 620 623 * Don't do this if we are only starting the selector window or a separate VM process. */ 621 624 bool fStartVM = false; … … 628 631 if ( !::strcmp(argv[i], "--startvm") 629 632 || !::strcmp(argv[i], "-startvm")) 630 {631 633 fStartVM = true; 632 }633 634 else if ( !::strcmp(argv[i], "--separate") 634 635 || !::strcmp(argv[i], "-separate")) 635 {636 636 fSeparateProcess = true; 637 }638 637 } 639 638 640 639 uint32_t fFlags = fStartVM && !fSeparateProcess ? RTR3INIT_FLAGS_SUPLIB : 0; 641 640 #else 641 uint32_t fFlags = 0; 642 #endif 642 643 int rc = RTR3InitExe(argc, &argv, fFlags); 643 644 … … 652 653 # ifdef Q_OS_SOLARIS 653 654 a.setStyle("fusion"); 654 # endif /* Q_OS_SOLARIS */655 # endif 655 656 656 657 /* Prepare the error-message: */ … … 664 665 # ifdef RT_OS_LINUX 665 666 strText += g_QStrHintLinuxNoDriver; 666 # else /* RT_OS_LINUX */667 # else 667 668 strText += g_QStrHintOtherNoDriver; 668 # endif /* !RT_OS_LINUX */669 # endif 669 670 break; 670 671 # ifdef RT_OS_LINUX … … 672 673 strText += g_QStrHintLinuxNoMemory; 673 674 break; 674 # endif /* RT_OS_LINUX */675 # endif 675 676 case VERR_VM_DRIVER_NOT_ACCESSIBLE: 676 677 strText += QApplication::tr("Kernel driver not accessible"); … … 679 680 # ifdef RT_OS_LINUX 680 681 strText += g_QStrHintLinuxWrongDriverVersion; 681 # else /* RT_OS_LINUX */682 # else 682 683 strText += g_QStrHintOtherWrongDriverVersion; 683 # endif /* !RT_OS_LINUX */684 # endif 684 685 break; 685 686 default: … … 697 698 } 698 699 699 /* Actual main function: */ 700 /* 701 * Call actual main function: 702 */ 700 703 return TrustedMain(argc, argv, envp); 701 704 } 702 705 703 #endif 706 #endif /* !VBOX_WITH_HARDENING || (VBOX_GUI_WITH_SHARED_LIBRARY && !VBOX_RUNTIME_UI) */ 704 707 705 708 #ifdef VBOX_WITH_HARDENING
Note:
See TracChangeset
for help on using the changeset viewer.