Skip to content

Commit

Permalink
change initial value of sys_lwmutex_t::waiter
Browse files Browse the repository at this point in the history
  • Loading branch information
Bigpet committed Oct 2, 2014
1 parent 5b18e90 commit f11c6c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rpcs3/Emu/SysCalls/lv2/sys_lwmutex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f11c6c3

Please sign in to comment.