VirtualBox

Changeset 64765 in vbox


Ignore:
Timestamp:
Nov 30, 2016 10:28:00 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
112110
Message:

Storage/VD: (bugref:8685) Fixed VBoxSVC crash on removing extpack while no VD plugins are loaded.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/VD.cpp

    r64712 r64765  
    35973597 * Checks whether the given plugin filename was already loaded.
    35983598 *
    3599  * @returns true if the plugin was already loaded, false otherwise.
     3599 * @returns Pointer to already loaded plugin, NULL if not found.
    36003600 * @param   pszFilename    The filename to check.
    36013601 */
    3602 static bool vdPluginFind(const char *pszFilename)
     3602static PVDPLUGIN vdPluginFind(const char *pszFilename)
    36033603{
    36043604    PVDPLUGIN pIt = NULL;
     
    36073607    {
    36083608        if (!RTStrCmp(pIt->pszFilename, pszFilename))
    3609             return true;
    3610     }
    3611 
    3612     return false;
     3609            return pIt;
     3610    }
     3611
     3612    return NULL;
    36133613}
    36143614
     
    36463646{
    36473647    /* Find plugin to be removed from the list. */
    3648     PVDPLUGIN pIt = NULL;
    3649     RTListForEach(&g_ListPluginsLoaded, pIt, VDPLUGIN, NodePlugin)
    3650     {
    3651         if (!RTStrCmp(pIt->pszFilename, pszFilename))
    3652             break;
    3653     }
     3648    PVDPLUGIN pIt = vdPluginFind(pszFilename);
    36543649    if (!pIt)
    36553650        return VINF_SUCCESS;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette