[NETCFGX] Call the ApplyProperties or CancelProperties method

Call the ApplyProperties or CancelProperties method when the user clicks the OK or Cancel button of the property sheet.
This commit is contained in:
Eric Kohl
2026-04-05 12:43:04 +02:00
parent 2a2aaf98d4
commit 2a40a01d4a
+14 -3
View File
@@ -720,12 +720,23 @@ INetCfgComponent_fnRaisePropertyUi(
CoTaskMemFree(hppages);
if (iResult > 0)
{
hr = INetCfgComponentPropertyUi_ApplyProperties(This->pProperty);
/* indicate that settings should be stored */
This->pItem->bChanged = TRUE;
return S_OK;
if (hr == S_OK)
This->pItem->bChanged = TRUE;
}
return S_FALSE;
else if (iResult == 0)
{
hr = INetCfgComponentPropertyUi_CancelProperties(This->pProperty);
}
else
{
hr = S_FALSE;
}
return hr;
}
static const INetCfgComponentVtbl vt_NetCfgComponent =
{
INetCfgComponent_fnQueryInterface,