crt: **Really** fix newlib lock

This commit is contained in:
CreeperMario 2017-08-06 16:56:17 +09:30
parent 96b24236f1
commit 492bad4382

View File

@ -70,7 +70,7 @@ static int __libwut_lock_close(int *lock)
static int __libwut_lock_acquire(int *lock)
{
OSMutex *mutex = (OSMutex *)lock;
OSMutex *mutex = (OSMutex *)*lock;
if (!lock || *lock == 0) {
return -1;
}
@ -81,7 +81,7 @@ static int __libwut_lock_acquire(int *lock)
static int __libwut_lock_release(int *lock)
{
OSMutex *mutex = (OSMutex *)lock;
OSMutex *mutex = (OSMutex *)*lock;
if (!lock || *lock == 0) {
return -1;
}