fixed use of original_handle in lieu of handle (Graeme Gill)

This commit is contained in:
Pete Batard
2010-03-15 23:08:32 +00:00
parent f06e130f77
commit b92fa32a29
+3 -3
View File
@@ -179,7 +179,7 @@ void init_polling(void)
for (i=0; i<MAX_FDS; i++) {
poll_fd[i] = INVALID_WINFD;
_poll_fd[i].marker = 0;
_poll_fd[i].original_handle = INVALID_HANDLE_VALUE;
_poll_fd[i].handle = INVALID_HANDLE_VALUE;
_poll_fd[i].thread_id = 0;
InitializeCriticalSection(&_poll_fd[i].mutex);
}
@@ -523,8 +523,8 @@ void _free_index(int index)
_close(poll_fd[index].fd);
}
free_overlapped(poll_fd[index].overlapped);
CloseHandle(_poll_fd[index].original_handle);
_poll_fd[index].original_handle = INVALID_HANDLE_VALUE;
CloseHandle(_poll_fd[index].handle);
_poll_fd[index].handle = INVALID_HANDLE_VALUE;
_poll_fd[index].thread_id = 0;
poll_fd[index] = INVALID_WINFD;
}