Oops, fix that fix. TranslateKey can return <0 and it needs to be
[sgt/putty] / 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