X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/5af3a3b6675c5fa7981f068f009e7c8e7e2e495b..9d33ebddc777e92a92d57f91a9d7f325d36aa422:/pageant.c diff --git a/pageant.c b/pageant.c index 0c341ea6..62f60db2 100644 --- 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; }