mirror of
https://github.com/reactos/reactos.git
synced 2024-08-11 21:58:10 +00:00
Set DI_FLAGSEX_ALLOWEXCLUDEDDRVS flag when searching a driver for a PnP device
svn path=/trunk/; revision=20443
This commit is contained in:
parent
c9108dbb1b
commit
980dfd8109
|
@ -739,9 +739,22 @@ static BOOL
|
||||||
FindDriver(
|
FindDriver(
|
||||||
IN PDEVINSTDATA DevInstData)
|
IN PDEVINSTDATA DevInstData)
|
||||||
{
|
{
|
||||||
|
SP_DEVINSTALL_PARAMS DevInstallParams = {0,};
|
||||||
BOOL ret;
|
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);
|
ret = SetupDiBuildDriverInfoList(DevInstData->hDevInfo, &DevInstData->devInfoData, SPDIT_COMPATDRIVER);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue