Changeset 14344 in vbox for trunk/src/VBox
- Timestamp:
- Nov 19, 2008 10:50:48 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/VBoxHDD-new.cpp
r14062 r14344 688 688 rc = RTDirOpenFiltered(&pPluginDir, pszPluginFilter, RTDIRFILTER_WINNT); 689 689 if (RT_FAILURE(rc)) 690 { 691 /* On Windows the above immediately signals that there are no 692 * files matching, while on other platforms enumerating the 693 * files below fails. Either way: no plugins. */ 690 694 break; 695 } 691 696 692 697 PRTDIRENTRYEX pPluginDirEntry = NULL; … … 774 779 } 775 780 } 776 if (RT_FAILURE(rc))777 break;778 781 paExts[iExt] = NULL; 779 782 pEntries[cEntries].papszFileExtensions = paExts; … … 792 795 } 793 796 } 797 else 798 LogFunc(("ignored plugin '%s': pBackend->cbSize=%d rc=%Vrc\n", pszPluginPath, pBackend->cbSize, rc)); 794 799 } 795 800 else 796 pBackend = NULL;801 LogFunc(("ignored plugin '%s': rc=%Vrc\n", pszPluginPath, rc)); 797 802 798 803 RTLdrClose(hPlugin); … … 808 813 RTDirClose(pPluginDir); 809 814 } while (0); 815 /* Ignore any files which can't be found. Happens e.g. on Windows when 816 * absolutely no plugins are installed (see above). Totally harmless. */ 817 if (rc == VERR_FILE_NOT_FOUND) 818 rc = VINF_SUCCESS; 810 819 811 820 LogFlowFunc(("returns %Rrc *pcEntriesUsed=%u\n", rc, cEntries));
Note:
See TracChangeset
for help on using the changeset viewer.