Enable protocol prefix on [user@]host argument in Plink
[u/mdw/putty] / 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;
                }