VirtualBox

Changeset 63917 in vbox


Ignore:
Timestamp:
Sep 21, 2016 7:58:31 AM (8 years ago)
Author:
vboxsync
Message:

DrvVD: Don't fail completely when loading a plugin failed, log the error and go on

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DrvVD.cpp

    r63740 r63917  
    37513751static int drvvdLoadPlugins(PCFGMNODE pCfg)
    37523752{
    3753     int rc = VINF_SUCCESS;
    37543753    PCFGMNODE pCfgPlugins = CFGMR3GetChild(pCfg, "Plugins");
    37553754
     
    37573756    {
    37583757        PCFGMNODE pPluginCur = CFGMR3GetFirstChild(pCfgPlugins);
    3759         while (   pPluginCur
    3760                && RT_SUCCESS(rc))
    3761         {
     3758        while (pPluginCur)
     3759        {
     3760            int rc = VINF_SUCCESS;
    37623761            char *pszPluginFilename = NULL;
    37633762            rc = CFGMR3QueryStringAlloc(pPluginCur, "Path", &pszPluginFilename);
     
    37653764                rc = VDPluginLoadFromFilename(pszPluginFilename);
    37663765
     3766            if (RT_FAILURE(rc))
     3767                LogRel(("VD: Failed to load plugin '%s' with %Rrc, continuing\n", pszPluginFilename, rc));
     3768
    37673769            pPluginCur = CFGMR3GetNextChild(pPluginCur);
    37683770        }
    37693771    }
    37703772
    3771     return rc;
     3773    return VINF_SUCCESS;
    37723774}
    37733775
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