[MSPORTS]

- Check for failure when calling SetupDiGetActualSectionToInstallW so we don't pass garbage to SetupInstallFromInfSectionW. CID 715920

svn path=/trunk/; revision=73663
This commit is contained in:
Kamil Hornicek 2017-02-01 18:36:40 +00:00
parent 5fd3611831
commit b12e316394

View file

@ -579,12 +579,13 @@ InstallDeviceData(IN HDEVINFO DeviceInfoSet,
TRACE("Section name: %S\n", DriverInfoDetailData->SectionName);
SetupDiGetActualSectionToInstallW(hInf,
DriverInfoDetailData->SectionName,
InfSectionWithExt,
256,
NULL,
NULL);
if (!SetupDiGetActualSectionToInstallW(hInf,
DriverInfoDetailData->SectionName,
InfSectionWithExt,
256,
NULL,
NULL))
goto done;
TRACE("InfSectionWithExt: %S\n", InfSectionWithExt);