mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:42:56 +00:00
Take care of flag DI_FLAGSEX_NO_DRVREG_MODIFY
svn path=/trunk/; revision=20337
This commit is contained in:
parent
ad04c03732
commit
3fe126e7b0
1 changed files with 7 additions and 2 deletions
|
@ -7476,7 +7476,9 @@ SetupDiInstallDevice(
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
/* Install main section */
|
/* Install main section */
|
||||||
DoAction = SPINST_REGISTRY;
|
DoAction = 0;
|
||||||
|
if (!(InstallParams.FlagsEx & DI_FLAGSEX_NO_DRVREG_MODIFY))
|
||||||
|
DoAction |= SPINST_REGISTRY;
|
||||||
if (!(InstallParams.Flags & DI_NOFILECOPY))
|
if (!(InstallParams.Flags & DI_NOFILECOPY))
|
||||||
{
|
{
|
||||||
DoAction |= SPINST_FILES;
|
DoAction |= SPINST_FILES;
|
||||||
|
@ -7579,10 +7581,13 @@ SetupDiInstallDevice(
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
/* Install .HW section */
|
/* Install .HW section */
|
||||||
|
DoAction = 0;
|
||||||
|
if (!(InstallParams.FlagsEx & DI_FLAGSEX_NO_DRVREG_MODIFY))
|
||||||
|
DoAction |= SPINST_REGISTRY;
|
||||||
wcscpy(pSectionName, L".HW");
|
wcscpy(pSectionName, L".HW");
|
||||||
Result = SetupInstallFromInfSectionW(InstallParams.hwndParent,
|
Result = SetupInstallFromInfSectionW(InstallParams.hwndParent,
|
||||||
SelectedDriver->InfFileDetails->hInf, SectionName,
|
SelectedDriver->InfFileDetails->hInf, SectionName,
|
||||||
SPINST_REGISTRY, hKey, NULL, 0,
|
DoAction, hKey, NULL, 0,
|
||||||
NULL, NULL,
|
NULL, NULL,
|
||||||
DeviceInfoSet, DeviceInfoData);
|
DeviceInfoSet, DeviceInfoData);
|
||||||
if (!Result)
|
if (!Result)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue