crypto: use the right mutex
This commit is contained in:
parent
409915e955
commit
efb833f342
@ -102,9 +102,9 @@ static void crypto_lock_init(void) {
|
|||||||
|
|
||||||
static void crypto_lock_cb(int mode, int n, const char* file, int line) {
|
static void crypto_lock_cb(int mode, int n, const char* file, int line) {
|
||||||
if (mode & CRYPTO_LOCK)
|
if (mode & CRYPTO_LOCK)
|
||||||
WaitForSingleObject(locks[type], INFINITE);
|
WaitForSingleObject(locks[n], INFINITE);
|
||||||
else
|
else
|
||||||
ReleaseMutex(locks[type]);
|
ReleaseMutex(locks[n]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user