From fdb6435ef91413e24fbcaf5cee983aec3b63392c Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Fri, 7 Sep 2001 20:32:33 +0000 Subject: [PATCH] Oops, fix that fix. TranslateKey can return <0 and it needs to be dealt with. I don't recall being told that; I should comment it at some stage. [originally from svn r1234] --- window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/window.c b/window.c index 49288631..46bf64f2 100644 --- a/window.c +++ b/window.c @@ -1864,7 +1864,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message, if (len == -1) return DefWindowProc(hwnd, message, wParam, lParam); - if (len > 0) { + if (len != 0) { /* * We need not bother about stdin backlogs * here, because in GUI PuTTY we can't do