From 4847616915737d97f617a4cd962ed455f99ebab8 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Mon, 30 Mar 2015 09:34:29 +0000 Subject: [PATCH] [SETUPAPI] Install .Services section optionally. Brought to you by Victor Martinez. CORE-9406 svn path=/trunk/; revision=66974 --- reactos/dll/win32/setupapi/devclass.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/reactos/dll/win32/setupapi/devclass.c b/reactos/dll/win32/setupapi/devclass.c index cae8b660735..545fd9e4020 100644 --- a/reactos/dll/win32/setupapi/devclass.c +++ b/reactos/dll/win32/setupapi/devclass.c @@ -860,6 +860,7 @@ SetupDiInstallClassExW( InstallParams.cbSize = sizeof(SP_DEVINSTALL_PARAMS); if (!SetupDiGetDeviceInstallParamsW(hDeviceInfo, NULL, &InstallParams)) goto cleanup; + InstallParams.Flags &= ~(DI_NOVCP | DI_NOBROWSE | DI_QUIETINSTALL); InstallParams.Flags |= Flags & (DI_NOVCP | DI_NOBROWSE | DI_QUIETINSTALL); if (Flags & DI_NOVCP) @@ -939,9 +940,9 @@ SetupDiInstallClassExW( if (!ret) goto cleanup; - /* Install .Services section */ + /* OPTIONAL: Install .Services section */ lstrcatW(SectionName, DotServices); - ret = SetupInstallServicesFromInfSectionExW( + SetupInstallServicesFromInfSectionExW( hInf, SectionName, 0, @@ -949,9 +950,6 @@ SetupDiInstallClassExW( NULL, NULL, NULL); - if (!ret) - goto cleanup; - ret = TRUE; }