mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 21:39:52 +00:00
Minor correctness on create mutex.
This commit is contained in:
parent
7fa388952e
commit
7b9a8bf766
@ -93,7 +93,13 @@ void sceKernelCreateMutex(const char *name, u32 attr, int initialCount, u32 opti
|
||||
mutex->nm.name[31] = 0;
|
||||
mutex->nm.attr = attr;
|
||||
mutex->nm.lockLevel = initialCount;
|
||||
mutex->nm.lockThread = __KernelGetCurThread();
|
||||
if (mutex->nm.lockLevel == 0)
|
||||
mutex->nm.lockThread = -1;
|
||||
else
|
||||
mutex->nm.lockThread = __KernelGetCurThread();
|
||||
|
||||
if (optionsPtr != 0)
|
||||
WARN_LOG(HLE,"sceKernelCreateMutex(%s) unsupported options parameter.", name);
|
||||
|
||||
RETURN(id);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user