Local remove of first key in list wasn't working
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 2 Oct 2000 12:38:12 +0000 (12:38 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 2 Oct 2000 12:38:12 +0000 (12:38 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@662 cda61777-01e9-0310-a592-d414129be87e

pageant.c

index 0c341ea..62f60db 100644 (file)
--- a/pageant.c
+++ b/pageant.c
@@ -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;
                }