diff options
author | Pete Batard <pbatard@gmail.com> | 2010-07-30 00:30:31 +0100 |
---|---|---|
committer | Daniel Drake <dan@reactivated.net> | 2010-08-06 21:45:31 -0600 |
commit | 7fd36af9f749ce8bf96f89cefd519a9f46825573 (patch) | |
tree | f5e05777035ec087b9e8059bc939e06b13b84fe2 /libusb/os/poll_windows.c | |
parent | 33cd2f68b4d500e852e354e5acae3d9a96a8ec26 (diff) | |
download | libusb-7fd36af9f749ce8bf96f89cefd519a9f46825573.tar.gz |
Windows: DuplicateHandle failure is not a warning
This is because WinUSB handles are not duplicable, and generate a
lot of these warnings.
Diffstat (limited to 'libusb/os/poll_windows.c')
-rw-r--r-- | libusb/os/poll_windows.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/os/poll_windows.c b/libusb/os/poll_windows.c index 59c3b07..9ae9895 100644 --- a/libusb/os/poll_windows.c +++ b/libusb/os/poll_windows.c @@ -411,7 +411,7 @@ struct winfd usbi_create_fd(HANDLE handle, int access_mode) _poll_fd[i].thread_id = GetCurrentThreadId(); if (!DuplicateHandle(GetCurrentProcess(), handle, GetCurrentProcess(), &wfd.handle, 0, TRUE, DUPLICATE_SAME_ACCESS)) { - usbi_warn(NULL, "could not duplicate handle for CancelIo - using original one"); + usbi_dbg("could not duplicate handle for CancelIo - using original one"); wfd.handle = handle; // Make sure we won't close the original handle on fd deletion then _poll_fd[i].original_handle = INVALID_HANDLE_VALUE; |