summaryrefslogtreecommitdiff
path: root/src/w32.c
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2006-12-21 12:47:06 +0000
committerKim F. Storm <storm@cua.dk>2006-12-21 12:47:06 +0000
commit7046f191469760944778a233c26a3549b5c45105 (patch)
tree04b0becce5456ce26e3d88f7cab570cda06169ad /src/w32.c
parent274fa194fad0e80eafd8f870cde2d9a099d0749c (diff)
downloademacs-7046f191469760944778a233c26a3549b5c45105.tar.gz
(_sys_wait_accept): Fix handle leak.
Diffstat (limited to 'src/w32.c')
-rw-r--r--src/w32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/w32.c b/src/w32.c
index cbc78f8a5d5..10d64212058 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -3698,10 +3698,10 @@ int _sys_wait_accept (int fd)
{
rc = WaitForSingleObject (hEv, INFINITE);
pfn_WSAEventSelect (SOCK_HANDLE (fd), NULL, 0);
- pfn_WSACloseEvent (hEv);
if (rc == WAIT_OBJECT_0)
cp->status = STATUS_READ_SUCCEEDED;
}
+ pfn_WSACloseEvent (hEv);
return cp->status;
}
@@ -4127,7 +4127,7 @@ BOOL WINAPI shutdown_handler(DWORD type)
shut_down_emacs (0, 0, Qnil);
}
- /* Allow other handlers to handle this signal. */
+ /* Allow other handlers to handle this signal. */
return FALSE;
}