]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Put that ReleaseCapture call just _before_ return, not after!
authorSimon Tatham <anakin@pobox.com>
Mon, 5 Jul 1999 16:35:34 +0000 (16:35 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 5 Jul 1999 16:35:34 +0000 (16:35 +0000)
[originally from svn r172]

window.c

index 0d2ddb660b57ac34bcd3b4bbeb12ca31f7e18548..3eaa0336a4580325fa92509c806426cef118302b 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,