mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user