mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 04:42:43 +01:00
crt: **Really** fix newlib lock
This commit is contained in:
parent
96b24236f1
commit
492bad4382
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user