From 61bd8e515e6df966db7d2967a6bfaa6ecc8cc678 Mon Sep 17 00:00:00 2001 From: tantra35 Date: Fri, 13 Jun 2025 23:03:04 +0300 Subject: [PATCH] remove unneeded variable --- openvpn.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openvpn.c b/openvpn.c index 06b0939..b7c5202 100644 --- a/openvpn.c +++ b/openvpn.c @@ -843,7 +843,6 @@ GenericPassDialogFunc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) case WM_INITDIALOG: param = (auth_param_t *)lParam; TRY_SETPROP(hwndDlg, cfgProp, (HANDLE)param); - BOOL lenableOKBtn = FALSE; WCHAR *wstr = Widen(param->str); if (!wstr) @@ -978,7 +977,7 @@ GenericPassDialogFunc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) else { /* disable OK button until response is filled-in */ - EnableWindow(GetDlgItem(hwndDlg, IDOK), lenableOKBtn); + EnableWindow(GetDlgItem(hwndDlg, IDOK), FALSE); ResetPasswordReveal(GetDlgItem(hwndDlg, ID_EDT_RESPONSE), GetDlgItem(hwndDlg, ID_PASSWORD_REVEAL), 0);