VirtualBox

Changeset 106995 in vbox for trunk


Ignore:
Timestamp:
Nov 13, 2024 4:51:17 PM (2 weeks ago)
Author:
vboxsync
Message:

Additions/VBoxTray: Give a better clue to the user when VBoxTray is unable to start if unable to open a connection to the VBoxGuest driver. Addendum fix: Only show in verbose mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.cpp

    r106887 r106995  
    12661266    else
    12671267    {
    1268         if (rc == VERR_OPEN_FAILED)
    1269             VBoxTrayShowError("Error opening a connection to the VBoxGuest.sys driver.\n\n"
    1270                               "This might be due to not having the Windows Guest Additions installed\n"
    1271                               "or that something went wrong when installing those.\n\n"
    1272                               "Re-installing the Guest Additions might resolve the issue.\n");
    1273         else
    1274             VBoxTrayShowError("VbglR3Init failed: %Rrc\n", rc);
     1268        /* Only show something if started in verbose mode.
     1269         * Otherwise just fail silently as we ever did. Needed in order to not break installs on non-VMs. */
     1270        if (g_cVerbosity)
     1271        {
     1272            if (rc == VERR_OPEN_FAILED)
     1273                VBoxTrayShowError("Error opening a connection to the VBoxGuest.sys driver.\n\n"
     1274                                  "This might be due to not having the Windows Guest Additions installed\n"
     1275                                  "or that something went wrong when installing those.\n\n"
     1276                                  "Re-installing the Guest Additions might resolve the issue.\n");
     1277            else
     1278                VBoxTrayShowError("VbglR3Init failed: %Rrc\n", rc);
     1279        }
    12751280    }
    12761281
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