1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 01:02:24 +00:00

Local remove of first key in list wasn't working

[originally from svn r662]
This commit is contained in:
Simon Tatham 2000-10-02 12:38:12 +00:00
parent 7fc8ef792f
commit ab68fc8a96

View File

@ -522,7 +522,7 @@ static int CALLBACK KeyListProc(HWND hwnd, UINT msg,
if (HIWORD(wParam) == BN_CLICKED ||
HIWORD(wParam) == BN_DOUBLECLICKED) {
int n = SendDlgItemMessage (hwnd, 100, LB_GETCURSEL, 0, 0);
if (n == LB_ERR || n == 0) {
if (n == LB_ERR) {
MessageBeep(0);
break;
}