mirror of
https://github.com/utmapp/libusb.git
synced 2026-12-01 14:01:17 -10:00
fixed use of original_handle in lieu of handle (Graeme Gill)
This commit is contained in:
1 parent
f06e130f77
commit
b92fa32a29
1 file changed
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user