Author: akhaldi Date: Mon Mar 30 09:34:29 2015 New Revision: 66974
URL: http://svn.reactos.org/svn/reactos?rev=66974&view=rev Log: [SETUPAPI] Install .Services section optionally. Brought to you by Victor Martinez. CORE-9406
Modified: trunk/reactos/dll/win32/setupapi/devclass.c
Modified: trunk/reactos/dll/win32/setupapi/devclass.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/devclass... ============================================================================== --- trunk/reactos/dll/win32/setupapi/devclass.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/setupapi/devclass.c [iso-8859-1] Mon Mar 30 09:34:29 2015 @@ -860,6 +860,7 @@ 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 @@ if (!ret) goto cleanup;
- /* Install .Services section */ + /* OPTIONAL: Install .Services section */ lstrcatW(SectionName, DotServices); - ret = SetupInstallServicesFromInfSectionExW( + SetupInstallServicesFromInfSectionExW( hInf, SectionName, 0, @@ -949,9 +950,6 @@ NULL, NULL, NULL); - if (!ret) - goto cleanup; - ret = TRUE; }