I think we've been told before that you're not supposed to
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 13 Oct 2004 12:29:50 +0000 (12:29 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 13 Oct 2004 12:29:50 +0000 (12:29 +0000)
CloseHandle() the thing returned from MonitorFromPoint. Certainly MS
Visual Studio's debugger complained about it just now. CloseHandle()
call removed.

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

window.c

index 5a36973..2b5073f 100644 (file)
--- a/window.c
+++ b/window.c
@@ -2188,7 +2188,6 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
                            mi.rcMonitor.top == pt.y) {
                            mouse_on_hotspot = 1;
                        }
-                       CloseHandle(mon);
                    }
                }
 #else