VirtualBox

Changeset 81188 in vbox


Ignore:
Timestamp:
Oct 9, 2019 2:45:15 PM (5 years ago)
Author:
vboxsync
Message:

Additions/VBoxTray: A service's instance pointer might be NULL if initialization of a service failed; so skip calling the destruction function in that case.

File:
1 edited

Legend:

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

    r81145 r81188  
    421421        }
    422422
    423         if (pSvc->pDesc->pfnDestroy)
     423        if (   pSvc->pDesc->pfnDestroy
     424            && pSvc->pInstance) /* pInstance might be NULL if initialization of a service failed. */
    424425        {
    425426            LogRel2(("Terminating service '%s' ...\n", pSvc->pDesc->pszName));
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