儲存庫 vbox 的更動 18222
- 時間撮記:
- 2009-3-24 下午07:38:33 (16 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Frontends/VirtualBox/src/main.cpp
r18033 r18222 51 51 #ifdef VBOX_WITH_HARDENING 52 52 # include <VBox/sup.h> 53 #else 54 # include <VBox/err.h> 53 55 #endif 54 56 … … 480 482 } 481 483 484 int rc; 482 485 if (!fInitSUPLib) 483 RTR3Init();486 rc = RTR3Init(); 484 487 else 485 RTR3InitAndSUPLib(); 488 rc = RTR3InitAndSUPLib(); 489 if (RT_FAILURE(rc)) 490 { 491 QApplication a (argc, &argv[0]); 492 QString msgTitle = QApplication::tr ("VirtualBox - Runtime Error"); 493 QString msgText = "<html>"; 494 495 switch (rc) 496 { 497 case VERR_VM_DRIVER_NOT_INSTALLED: 498 msgText += QApplication::tr ( 499 "<b>Cannot access the kernel driver!</b><br/><br/>" 500 # ifdef RT_OS_LINUX 501 "The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or " 502 "there is a permission problem with /dev/vboxdrv. Re-setup the kernel " 503 "module by executing<br/><br/>" 504 " <font color=blue>'/etc/init.d/vboxdrv setup'</font><br/><br/>" 505 "as root. Users of Ubuntu or Fedora should install the DKMS package " 506 "at first. This package keeps track of Linux kernel changes and " 507 "recompiles the vboxdrv kernel module if necessary." 508 # else 509 "Make sure the kernel module has been loaded successfully." 510 # endif 511 ); 512 break; 513 default: 514 msgText += QApplication::tr ( 515 "Unknown %2 error during initialization of the Runtime" 516 ).arg (rc); 517 break; 518 } 519 msgText += "</html>"; 520 QMessageBox::critical ( 521 0, /* parent */ 522 msgTitle, 523 msgText, 524 QMessageBox::Abort, /* button0 */ 525 0); /* button1 */ 526 return 1; 527 } 486 528 487 529 return TrustedMain (argc, argv, envp);
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器