VirtualBox

Changeset 62135 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Jul 8, 2016 11:33:34 AM (8 years ago)
Author:
vboxsync
Message:

VBoxTray: prevent crash and failure to start with old Windows guests.

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

Legend:

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

    r58307 r62135  
    110110{
    111111    LogFlowFuncEnter();
     112
     113    if (!pInstance)
     114        return;
    112115
    113116    PVBOXSEAMLESSCONTEXT pCtx = (PVBOXSEAMLESSCONTEXT)pInstance;
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.cpp

    r60531 r62135  
    303303        if (RT_FAILURE(rc2))
    304304        {
    305             LogRel(("Failed to initialize service '%s', rc=%Rrc\n", pSvc->pDesc->pszName, rc));
     305            LogRel(("Failed to initialize service '%s', rc=%Rrc\n", pSvc->pDesc->pszName, rc2));
    306306            if (rc2 == VERR_NOT_SUPPORTED)
    307307            {
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxVRDP.cpp

    r58307 r62135  
    300300        g_Ctx.pfnIsThemeActive = NULL;
    301301    }
     302
     303    /* Tell the caller that the service does not work but it is OK to continue. */
     304    if (RT_FAILURE(rc))
     305        rc = VERR_NOT_SUPPORTED;
    302306
    303307    LogFlowFuncLeaveRC(rc);
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