From 8f285f71c95701d997cd5b9af190d3f3c20abba3 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Mon, 10 Jun 2019 20:27:45 +0200 Subject: [PATCH] [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