From: Simon Tatham Date: Wed, 13 Oct 2004 12:29:50 +0000 (+0000) Subject: I think we've been told before that you're not supposed to X-Git-Tag: 0.58~437 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=71ad69f897c87c215766ad241dd2e0cd019fe0d5;p=PuTTY.git I think we've been told before that you're not supposed to CloseHandle() the thing returned from MonitorFromPoint. Certainly MS Visual Studio's debugger complained about it just now. CloseHandle() call removed. [originally from svn r4612] --- diff --git a/window.c b/window.c index 5a369738..2b5073fc 100644 --- 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