Put that ReleaseCapture call just _before_ return, not after!
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 5 Jul 1999 16:35:34 +0000 (16:35 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 5 Jul 1999 16:35:34 +0000 (16:35 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@172 cda61777-01e9-0310-a592-d414129be87e

window.c

index 0d2ddb6..3eaa033 100644 (file)
--- a/window.c
+++ b/window.c
@@ -727,8 +727,8 @@ static int WINAPI WndProc (HWND hwnd, UINT message,
        term_mouse (cfg.mouse_is_xterm ? MB_PASTE : MB_EXTEND,
                    MA_RELEASE, TO_CHR_X(X_POS(lParam)),
                    TO_CHR_Y(Y_POS(lParam)));
-       return 0;
         ReleaseCapture();
+       return 0;
       case WM_RBUTTONDOWN:
         SetCapture(hwnd);
        click (cfg.mouse_is_xterm ? MB_EXTEND : MB_PASTE,