Changeset 92613 in vbox for trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
- Timestamp:
- Nov 26, 2021 9:53:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
r92067 r92613 1582 1582 int main(int argc, char **argv, char **envp) 1583 1583 { 1584 // initialize VBox Runtime 1585 int rc = RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_SUPLIB); 1586 if (RT_FAILURE(rc)) 1587 { 1588 RTPrintf("VBoxHeadless: Runtime Error:\n" 1589 " %Rrc -- %Rrf\n", rc, rc); 1590 switch (rc) 1591 { 1592 case VERR_VM_DRIVER_NOT_INSTALLED: 1593 RTPrintf("Cannot access the kernel driver. Make sure the kernel module has been \n" 1594 "loaded successfully. Aborting ...\n"); 1595 break; 1596 default: 1597 break; 1598 } 1599 return 1; 1600 } 1601 1602 return TrustedMain(argc, argv, envp); 1584 int rc = RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_TRY_SUPLIB); 1585 if (RT_SUCCESS(rc)) 1586 return TrustedMain(argc, argv, envp); 1587 RTPrintf("VBoxHeadless: Runtime initialization failed: %Rrc - %Rrf\n", rc, rc); 1588 return RTEXITCODE_FAILURE; 1603 1589 } 1604 1590 #endif /* !VBOX_WITH_HARDENING */
Note:
See TracChangeset
for help on using the changeset viewer.