diff options
author | Pete Batard <pbatard@gmail.com> | 2010-02-26 01:39:11 +0000 |
---|---|---|
committer | Pete Batard <pbatard@gmail.com> | 2010-02-26 01:39:11 +0000 |
commit | bdeed5cbbb098cc4a3157216a142d187dfca9712 (patch) | |
tree | 63708086d32c60d20d136f280165b51232a2e376 /libusb/os/threads_windows.c | |
parent | fceedd4d307ecc89580aac9d8446e3e903e2ef5a (diff) | |
download | libusb-bdeed5cbbb098cc4a3157216a142d187dfca9712.tar.gz |
fixed a typo in usbi_mutex_unlockr179
also added mutex release in libusb_unref_device
Diffstat (limited to 'libusb/os/threads_windows.c')
-rw-r--r-- | libusb/os/threads_windows.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/os/threads_windows.c b/libusb/os/threads_windows.c index 11b55f9..da49eec 100644 --- a/libusb/os/threads_windows.c +++ b/libusb/os/threads_windows.c @@ -62,7 +62,7 @@ int usbi_mutex_lock(usbi_mutex_t *mutex) { } int usbi_mutex_unlock(usbi_mutex_t *mutex) { if(!mutex) return ((errno=EINVAL)); - if(!ReleaseMutex(mutex)) return ((errno=EPERM )); + if(!ReleaseMutex(*mutex)) return ((errno=EPERM )); return 0; } |