Changeset 64765 in vbox
- Timestamp:
- Nov 30, 2016 10:28:00 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 112110
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/VD.cpp
r64712 r64765 3597 3597 * Checks whether the given plugin filename was already loaded. 3598 3598 * 3599 * @returns true if the plugin was already loaded, false otherwise.3599 * @returns Pointer to already loaded plugin, NULL if not found. 3600 3600 * @param pszFilename The filename to check. 3601 3601 */ 3602 static boolvdPluginFind(const char *pszFilename)3602 static PVDPLUGIN vdPluginFind(const char *pszFilename) 3603 3603 { 3604 3604 PVDPLUGIN pIt = NULL; … … 3607 3607 { 3608 3608 if (!RTStrCmp(pIt->pszFilename, pszFilename)) 3609 return true;3610 } 3611 3612 return false;3609 return pIt; 3610 } 3611 3612 return NULL; 3613 3613 } 3614 3614 … … 3646 3646 { 3647 3647 /* 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); 3654 3649 if (!pIt) 3655 3650 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.