]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
I think we've been told before that you're not supposed to
authorSimon Tatham <anakin@pobox.com>
Wed, 13 Oct 2004 12:29:50 +0000 (12:29 +0000)
committerSimon Tatham <anakin@pobox.com>
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.

[originally from svn r4612]

window.c

index 5a36973889e526c8efab5812f734266bd84ef57f..2b5073fc13b450a8ee8ab34c0391db18228f8db5 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