From 0b43959bebb65fccb65c9cba8a98a2e942d2e396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Mon, 1 Sep 2025 11:14:56 +0200 Subject: [PATCH] [MSGINA] OnInitSecurityDlg(): Remove unnecessary code (#8371) The Security dialog can be displayed only when a user is logged. When this is so, the `pgContext->bAutoAdminLogon` has already been reset to `FALSE`, see `gui.c!DoLogon()`. Thus there is really no reason to disable the "Log Off" button in that case. Addendum to commit c633b79451 (r61622) --- dll/win32/msgina/gui.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/dll/win32/msgina/gui.c b/dll/win32/msgina/gui.c index b1db8d2b0f9..85e3a7fd1b1 100644 --- a/dll/win32/msgina/gui.c +++ b/dll/win32/msgina/gui.c @@ -842,9 +842,6 @@ OnInitSecurityDlg(HWND hwnd, wsprintfW(Buffer4, Buffer1, Buffer2, Buffer3); SetDlgItemTextW(hwnd, IDC_SECURITY_LOGONDATE, Buffer4); - - if (pgContext->bAutoAdminLogon) - EnableWindow(GetDlgItem(hwnd, IDC_SECURITY_LOGOFF), FALSE); }