From 1da033582a0bdf9de5737bd66ec9701bca39adcd Mon Sep 17 00:00:00 2001 From: henrypp Date: Thu, 3 Jan 2019 20:11:28 +0600 Subject: [PATCH] add option for disable wsa resolver "IsEnableWsaResolver" --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 92d010f7..d4a06fdc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2395,7 +2395,7 @@ rstring _app_parsehostaddress_wsa (LPCWSTR hostname, USHORT port) { rstring result; - if (!config.is_wsainit || !hostname | !hostname[0]) + if (!config.is_wsainit || !hostname | !hostname[0]|| !app.ConfigGet (L"IsEnableWsaResolver", true).AsBool ()) return L""; ADDRINFOEXW hints = {0}; @@ -9974,7 +9974,7 @@ INT_PTR CALLBACK DlgProc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) _app_listviewresize (hwnd, IDC_LISTVIEW); _app_refreshstatus (hwnd); - RedrawWindow (hwnd, nullptr, nullptr, RDW_NOFRAME | RDW_ERASE | RDW_INVALIDATE | RDW_ALLCHILDREN); + RedrawWindow (hwnd, nullptr, nullptr, RDW_NOFRAME | RDW_NOINTERNALPAINT | RDW_ERASE | RDW_INVALIDATE | RDW_ALLCHILDREN); break; }