diff options
author | Pete Batard <pete@akeo.ie> | 2014-11-13 22:03:30 +0000 |
---|---|---|
committer | Pete Batard <pete@akeo.ie> | 2014-11-13 22:03:30 +0000 |
commit | ada59db186aa95215158129db8cd42e079daff07 (patch) | |
tree | df9991bb82148db26d5c8e83b49e816c859bec66 /libusb/os/threads_windows.c | |
parent | ab8f71c03f8334df7b88a725a730d2020f2e9f80 (diff) | |
download | libusb-ada59db186aa95215158129db8cd42e079daff07.tar.gz |
Windows: Silence VS2013 code analysis warnings
* Also update Windows version report for Windows 10
Diffstat (limited to 'libusb/os/threads_windows.c')
-rw-r--r-- | libusb/os/threads_windows.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libusb/os/threads_windows.c b/libusb/os/threads_windows.c index 8d34ed5..700bad6 100644 --- a/libusb/os/threads_windows.c +++ b/libusb/os/threads_windows.c @@ -186,7 +186,8 @@ int usbi_cond_timedwait(usbi_cond_t *cond, // GetSystemTimeAsFileTime() is not available on CE SYSTEMTIME st; GetSystemTime(&st); - SystemTimeToFileTime(&st, &filetime); + if (!SystemTimeToFileTime(&st, &filetime)) + return 0; rtime.LowPart = filetime.dwLowDateTime; rtime.HighPart = filetime.dwHighDateTime; rtime.QuadPart -= epoch_time; |