[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)
This commit is contained in:
Hermès Bélusca-Maïto
2025-09-01 11:14:56 +02:00
parent b306f46e5b
commit 0b43959beb

View File

@@ -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);
}