By default, don't search a driver on removable media.
authorHervé Poussineau <hpoussin@reactos.org>
Fri, 2 Jun 2006 13:43:02 +0000 (13:43 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Fri, 2 Jun 2006 13:43:02 +0000 (13:43 +0000)
Do it only when choosing automatic install or selecting "Include removable media" in new hardware wizard

svn path=/trunk/; revision=22175

reactos/dll/win32/newdev/newdev.c

index 82f453d..1bd727c 100644 (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;