Oops, fix that fix. TranslateKey can return <0 and it needs to be
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 7 Sep 2001 20:32:33 +0000 (20:32 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 7 Sep 2001 20:32:33 +0000 (20:32 +0000)
dealt with. I don't recall being told that; I should comment it at
some stage.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1234 cda61777-01e9-0310-a592-d414129be87e

window.c

index 4928863..46bf64f 100644 (file)
--- 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