Skip to content

Commit 0b43959

Browse files
committed
[MSGINA] OnInitSecurityDlg(): Remove unnecessary code (reactos#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 c633b79 (r61622)
1 parent b306f46 commit 0b43959

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

dll/win32/msgina/gui.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -842,9 +842,6 @@ OnInitSecurityDlg(HWND hwnd,
842842
wsprintfW(Buffer4, Buffer1, Buffer2, Buffer3);
843843

844844
SetDlgItemTextW(hwnd, IDC_SECURITY_LOGONDATE, Buffer4);
845-
846-
if (pgContext->bAutoAdminLogon)
847-
EnableWindow(GetDlgItem(hwnd, IDC_SECURITY_LOGOFF), FALSE);
848845
}
849846

850847

0 commit comments

Comments
 (0)