Skip to content

Commit

Permalink
Fix ExitWindowsDlg string indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
aubymori committed Oct 19, 2023
1 parent e63a325 commit 5d5b29a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ExitWindowsDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ INT_PTR CALLBACK ExitWindowsDlgProc(
UINT uStringId = NULL;

/* Comboboxes are zero-indexed, while SHTDN_CONSTANTS are one-indexed */
switch (i - 1)
switch (i + 1)
{
case SHTDN_LOGOFF:
uStringId = IDS_LOGOFF_DESC;
Expand Down

0 comments on commit 5d5b29a

Please sign in to comment.