dont wake up thread with waitType WAITTYPE_MODULE in sceKernelReleaseWaitThread

add UTF-8 BOM to MiscScreens.cpp to avoid compile error.
This commit is contained in:
tpu committed 2013-07-18 00:16:42 +08:00
1 parent 94ef18025f
commit a4e447fe7e
2 files changed
+6 -1

No files matched your search

+5
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");