https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8f285f71c95701d997cd5…
commit 8f285f71c95701d997cd5b9af190d3f3c20abba3
Author:     Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Mon Jun 10 20:27:45 2019 +0200
Commit:     Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Mon Jun 10 20:28:58 2019 +0200
    [NETCFGX] Do not update the TCP/IP properties when the cancels the advanced properties
dialog.
    CORE-9908
---
 dll/win32/netcfgx/tcpipconf_notify.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
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