https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2c6cba1fc8029db1df59c…
commit 2c6cba1fc8029db1df59c317a64339151372af09
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Sat Jan 11 16:25:37 2020 +0100
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Sun Jan 12 15:15:54 2020 +0100
[NETCFGX] Notify the installer of changes to the properties
---
dll/win32/netcfgx/propertypage.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/dll/win32/netcfgx/propertypage.c b/dll/win32/netcfgx/propertypage.c
index a7ded46a051..3742e1bfe8f 100644
--- a/dll/win32/netcfgx/propertypage.c
+++ b/dll/win32/netcfgx/propertypage.c
@@ -746,6 +746,7 @@ WriteParameterArray(
_In_ HWND hwnd,
_In_ PPARAMETER_ARRAY ParamArray)
{
+ SP_DEVINSTALL_PARAMS_W InstallParams;
PPARAMETER Param;
HKEY hDriverKey;
INT i;
@@ -793,6 +794,19 @@ WriteParameterArray(
}
RegCloseKey(hDriverKey);
+
+ /* Notify the installer of changes to the properties */
+ InstallParams.cbSize = sizeof(SP_DEVINSTALL_PARAMS_W);
+ if (SetupDiGetDeviceInstallParamsW(ParamArray->DeviceInfoSet,
+ ParamArray->DeviceInfoData,
+ &InstallParams))
+ {
+ InstallParams.FlagsEx |= DI_FLAGSEX_PROPCHANGE_PENDING;
+
+ SetupDiSetDeviceInstallParamsW(ParamArray->DeviceInfoSet,
+ ParamArray->DeviceInfoData,
+ &InstallParams);
+ }
}