From b12e3163941fa5e245d873366becdb1f3cf30a2a Mon Sep 17 00:00:00 2001 From: Kamil Hornicek Date: Wed, 1 Feb 2017 18:36:40 +0000 Subject: [PATCH] [MSPORTS] - Check for failure when calling SetupDiGetActualSectionToInstallW so we don't pass garbage to SetupInstallFromInfSectionW. CID 715920 svn path=/trunk/; revision=73663 --- reactos/dll/win32/msports/classinst.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/reactos/dll/win32/msports/classinst.c b/reactos/dll/win32/msports/classinst.c index 78d0995e3b8..b026581bcfc 100644 --- a/reactos/dll/win32/msports/classinst.c +++ b/reactos/dll/win32/msports/classinst.c @@ -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); -- 2.17.1