From 3f888dd7816198b1a5f3d4222d88f1a6f1f65d8a Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Wed, 17 May 2017 10:26:41 +0200 Subject: [PATCH] Secondary error message pop-up removed --- WLANManager/Main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WLANManager/Main.cpp b/WLANManager/Main.cpp index 02ad1d3..3f7252a 100644 --- a/WLANManager/Main.cpp +++ b/WLANManager/Main.cpp @@ -132,7 +132,8 @@ static int WLANManager() WLAN_REASON_CODE wlrc = L2_REASON_CODE_SUCCESS; DWORD dwResult = WlanUIEditProfile(WLAN_UI_API_VERSION, pwcArglist[2], &(interfaces->InterfaceInfo[i].InterfaceGuid), NULL, WLSecurityPage, NULL, &wlrc); if (dwResult != ERROR_SUCCESS) { - DisplayError(_T("%s function failed (error %u)."), _T("WlanUIEditProfile"), dwResult); + // WlanUIEditProfile() displays own error dialog on failure. + //DisplayError(_T("%s function failed (error %u)."), _T("WlanUIEditProfile"), dwResult); return 5; } else if (wlrc != WLAN_REASON_CODE_SUCCESS) { tstring reason;