Author: khornicek
Date: Wed Feb 1 18:36:40 2017
New Revision: 73663
URL:
http://svn.reactos.org/svn/reactos?rev=73663&view=rev
Log:
[MSPORTS]
- Check for failure when calling SetupDiGetActualSectionToInstallW so we don't pass
garbage to SetupInstallFromInfSectionW. CID 715920
Modified:
trunk/reactos/dll/win32/msports/classinst.c
Modified: trunk/reactos/dll/win32/msports/classinst.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msports/classins…
==============================================================================
--- trunk/reactos/dll/win32/msports/classinst.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msports/classinst.c [iso-8859-1] Wed Feb 1 18:36:40 2017
@@ -579,12 +579,13 @@
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);