From 980dfd81091fe268851ca1677bf9e9e7c192d74f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Thu, 29 Dec 2005 22:02:14 +0000 Subject: [PATCH] Set DI_FLAGSEX_ALLOWEXCLUDEDDRVS flag when searching a driver for a PnP device svn path=/trunk/; revision=20443 --- reactos/lib/newdev/newdev.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/reactos/lib/newdev/newdev.c b/reactos/lib/newdev/newdev.c index 23523350620..461c4999566 100644 --- a/reactos/lib/newdev/newdev.c +++ b/reactos/lib/newdev/newdev.c @@ -739,9 +739,22 @@ static BOOL FindDriver( IN PDEVINSTDATA DevInstData) { - + SP_DEVINSTALL_PARAMS DevInstallParams = {0,}; BOOL ret; + DevInstallParams.cbSize = sizeof(SP_DEVINSTALL_PARAMS); + if (!SetupDiGetDeviceInstallParams(DevInstData->hDevInfo, &DevInstData->devInfoData, &DevInstallParams)) + { + DPRINT("SetupDiGetDeviceInstallParams() failed with error 0x%lx\n", GetLastError()); + return FALSE; + } + DevInstallParams.FlagsEx |= DI_FLAGSEX_ALLOWEXCLUDEDDRVS; + if (!SetupDiSetDeviceInstallParams(DevInstData->hDevInfo, &DevInstData->devInfoData, &DevInstallParams)) + { + DPRINT("SetupDiSetDeviceInstallParams() failed with error 0x%lx\n", GetLastError()); + return FALSE; + } + ret = SetupDiBuildDriverInfoList(DevInstData->hDevInfo, &DevInstData->devInfoData, SPDIT_COMPATDRIVER); if (!ret) {