1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-23 03:02:53 +01:00

Merge pull request #827 from Bigpet/master

change initial value of sys_lwmutex_t::waiter
This commit is contained in:
Alexandro Sánchez Bach 2014-10-02 19:19:21 +02:00
commit e4eecd247c

View File

@ -33,7 +33,8 @@ s32 sys_lwmutex_create(vm::ptr<sys_lwmutex_t> lwmutex, vm::ptr<sys_lwmutex_attri
}
lwmutex->attribute = attr->attr_protocol | attr->attr_recursive;
lwmutex->waiter = 0;
//waiter is currently unused by the emulator but some games apparently directly read this value
lwmutex->waiter = ~0;
lwmutex->mutex.initialize();
//lwmutex->waiter = lwmutex->owner.GetOwner();
lwmutex->pad = 0;