]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Local remove of first key in list wasn't working
authorSimon Tatham <anakin@pobox.com>
Mon, 2 Oct 2000 12:38:12 +0000 (12:38 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 2 Oct 2000 12:38:12 +0000 (12:38 +0000)
[originally from svn r662]

pageant.c

index 0c341ea6144cb50a7c6ad240f9ce73de559e810f..62f60db205f3bae0744fb8f07ba02e6478db613e 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;
                }