VirtualBox

Changeset 84720 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jun 8, 2020 7:51:42 AM (5 years ago)
Author:
vboxsync
Message:

Guest Additions/VBoxTray: Be more verbose when a certain service does not start; added more documentation about how to treat service starting failures.

Location:
trunk/src/VBox/Additions/WINNT/VBoxTray
Files:
2 edited

Legend:

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

    r83952 r84720  
    312312        if (RT_FAILURE(rc2))
    313313        {
    314             LogRel(("Failed to initialize service '%s', rc=%Rrc\n", pSvc->pDesc->pszName, rc2));
    315             if (rc2 == VERR_NOT_SUPPORTED)
     314            switch (rc2)
    316315            {
    317                 LogRel(("Service '%s' is not supported on this system\n", pSvc->pDesc->pszName));
    318                 rc2 = VINF_SUCCESS;
     316                case VERR_NOT_SUPPORTED:
     317                    LogRel(("Service '%s' is not supported on this system\n", pSvc->pDesc->pszName));
     318                    rc2 = VINF_SUCCESS; /* Keep going. */
     319                    break;
     320
     321                case VERR_HGCM_SERVICE_NOT_FOUND:
     322                    LogRel(("Service '%s' is not available on the host\n", pSvc->pDesc->pszName));
     323                    rc2 = VINF_SUCCESS; /* Keep going. */
     324                    break;
     325
     326                default:
     327                    LogRel(("Failed to initialize service '%s', rc=%Rrc\n", pSvc->pDesc->pszName, rc2));
     328                    break;
    319329            }
    320             /* Keep going. */
    321330        }
    322331        else
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.h

    r82968 r84720  
    9191     * Initializes a service.
    9292     * @returns VBox status code.
     93     *          VERR_NOT_SUPPORTED if the service is not supported on this guest system. Logged.
     94     *          VERR_HGCM_SERVICE_NOT_FOUND if the service is not available on the host system. Logged.
     95     *          Returning any other error will be considered as a fatal error.
    9396     * @param   pEnv
    9497     * @param   ppInstance      Where to return the thread-specific instance data.
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