From: Eric Kohl Date: Mon, 10 Jun 2019 18:27:45 +0000 (+0200) Subject: [NETCFGX] Do not update the TCP/IP properties when the cancels the advanced propertie... X-Git-Tag: 0.4.14-dev~819 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=8f285f71c95701d997cd5b9af190d3f3c20abba3;ds=sidebyside [NETCFGX] Do not update the TCP/IP properties when the cancels the advanced properties dialog. CORE-9908 --- diff --git a/dll/win32/netcfgx/tcpipconf_notify.c b/dll/win32/netcfgx/tcpipconf_notify.c index 0fa79d860a1..208a9496d2e 100644 --- a/dll/win32/netcfgx/tcpipconf_notify.c +++ b/dll/win32/netcfgx/tcpipconf_notify.c @@ -2139,10 +2139,11 @@ LaunchAdvancedTcpipSettings( pinfo.pfnCallback = PropSheetProc; StoreTcpipBasicSettings(hwndDlg, This, FALSE); - PropertySheetW(&pinfo); - - InitializeTcpipBasicDlgCtrls(hwndDlg, This->pCurrentConfig); - PropSheet_Changed(GetParent(hwndDlg), hwndDlg); + if (PropertySheetW(&pinfo) > 0) + { + InitializeTcpipBasicDlgCtrls(hwndDlg, This->pCurrentConfig); + PropSheet_Changed(GetParent(hwndDlg), hwndDlg); + } } INT_PTR