By default, don't search a driver on removable media.

Do it only when choosing automatic install or selecting "Include removable media" in new hardware wizard

svn path=/trunk/; revision=22175
This commit is contained in:
Hervé Poussineau 2006-06-02 13:43:02 +00:00
parent 0e5ee8026d
commit 8410eccf06

View file

@ -745,7 +745,7 @@ DevInstallW(
TRACE("Installing %S (%S)\n", DevInstData->buffer, InstanceId);
/* Search driver in default location and removable devices */
if (!PrepareFoldersToScan(DevInstData, TRUE, FALSE, NULL))
if (!PrepareFoldersToScan(DevInstData, FALSE, FALSE, NULL))
{
TRACE("PrepareFoldersToScan() failed with error 0x%lx\n", GetLastError());
goto cleanup;