summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-03-15 23:08:32 +0000
committerPete Batard <pbatard@gmail.com>2010-03-15 23:08:32 +0000
commitb92fa32a29378fcaea9b21dbfebf5fe00e89fd39 (patch)
tree90a1483ecd2ae396b597410661a78ea9597e4bc6
parentf06e130f77f08b60642ff7ca085126375a7a7ea2 (diff)
downloadlibusb-b92fa32a29378fcaea9b21dbfebf5fe00e89fd39.tar.gz
fixed use of original_handle in lieu of handle (Graeme Gill)r208
-rw-r--r--libusb/os/poll_windows.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libusb/os/poll_windows.c b/libusb/os/poll_windows.c
index 0d8d487..a400a6f 100644
--- a/libusb/os/poll_windows.c
+++ b/libusb/os/poll_windows.c
@@ -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;
}