mirror of
https://github.com/reactos/reactos
synced 2025-10-06 00:12:51 +02:00
[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:
@@ -842,9 +842,6 @@ OnInitSecurityDlg(HWND hwnd,
|
|||||||
wsprintfW(Buffer4, Buffer1, Buffer2, Buffer3);
|
wsprintfW(Buffer4, Buffer1, Buffer2, Buffer3);
|
||||||
|
|
||||||
SetDlgItemTextW(hwnd, IDC_SECURITY_LOGONDATE, Buffer4);
|
SetDlgItemTextW(hwnd, IDC_SECURITY_LOGONDATE, Buffer4);
|
||||||
|
|
||||||
if (pgContext->bAutoAdminLogon)
|
|
||||||
EnableWindow(GetDlgItem(hwnd, IDC_SECURITY_LOGOFF), FALSE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user