From 3fe126e7b09901ee35d9f7b3135feba5b40243fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Mon, 26 Dec 2005 15:55:33 +0000 Subject: [PATCH] Take care of flag DI_FLAGSEX_NO_DRVREG_MODIFY svn path=/trunk/; revision=20337 --- reactos/lib/setupapi/devinst.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/reactos/lib/setupapi/devinst.c b/reactos/lib/setupapi/devinst.c index ea9543427b2..bfb24c0a585 100644 --- a/reactos/lib/setupapi/devinst.c +++ b/reactos/lib/setupapi/devinst.c @@ -7476,7 +7476,9 @@ SetupDiInstallDevice( goto cleanup; /* Install main section */ - DoAction = SPINST_REGISTRY; + DoAction = 0; + if (!(InstallParams.FlagsEx & DI_FLAGSEX_NO_DRVREG_MODIFY)) + DoAction |= SPINST_REGISTRY; if (!(InstallParams.Flags & DI_NOFILECOPY)) { DoAction |= SPINST_FILES; @@ -7579,10 +7581,13 @@ SetupDiInstallDevice( goto cleanup; /* Install .HW section */ + DoAction = 0; + if (!(InstallParams.FlagsEx & DI_FLAGSEX_NO_DRVREG_MODIFY)) + DoAction |= SPINST_REGISTRY; wcscpy(pSectionName, L".HW"); Result = SetupInstallFromInfSectionW(InstallParams.hwndParent, SelectedDriver->InfFileDetails->hInf, SectionName, - SPINST_REGISTRY, hKey, NULL, 0, + DoAction, hKey, NULL, 0, NULL, NULL, DeviceInfoSet, DeviceInfoData); if (!Result)