Merge pull request #2813 from tpunix/thread_fix

dont wake up thread with waitType WAITTYPE_MODULE in sceKernelReleaseWai...
This commit is contained in:
Henrik Rydgård 2013-07-17 11:00:49 -07:00
commit d6c85c28de
2 changed files with 6 additions and 1 deletions

View File

@ -2605,6 +2605,11 @@ int sceKernelReleaseWaitThread(SceUID threadID)
WARN_LOG_REPORT(HLE, "sceKernelReleaseWaitThread(): Refusing to wake HLE-delayed thread, right thing to do?");
return SCE_KERNEL_ERROR_NOT_WAIT;
}
if (t->nt.waitType == WAITTYPE_MODULE)
{
WARN_LOG_REPORT(HLE, "sceKernelReleaseWaitThread(): Refusing to wake start_module thread, right thing to do?");
return SCE_KERNEL_ERROR_NOT_WAIT;
}
__KernelResumeThreadFromWait(threadID, SCE_KERNEL_ERROR_RELEASE_WAIT);
hleReSchedule("thread released from wait");

View File

@ -1,4 +1,4 @@
// Copyright (c) 2013- PPSSPP Project.
// Copyright (c) 2013- PPSSPP Project.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by