mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 09:39:33 +01:00
ThreadEvent: Allow an exit event handler on self.
This commit is contained in:
1 parent
be1cde15ba
commit
ceb36fc81d
1 file changed
+4
-1
@@ -3563,7 +3563,10 @@ SceUID sceKernelRegisterThreadEventHandler(const char *name, SceUID threadID, u3
|
||||
return hleReportError(SCEKERNEL, SCE_KERNEL_ERROR_ERROR, "invalid name");
|
||||
}
|
||||
if (threadID == 0) {
|
||||
return hleReportError(SCEKERNEL, SCE_KERNEL_ERROR_ILLEGAL_ATTR, "invalid thread id");
|
||||
// "atexit"?
|
||||
if (mask != THREADEVENT_EXIT) {
|
||||
return hleReportError(SCEKERNEL, SCE_KERNEL_ERROR_ILLEGAL_ATTR, "invalid thread id");
|
||||
}
|
||||
}
|
||||
u32 error;
|
||||
if (kernelObjects.Get<Thread>(threadID, error) == NULL && threadID != SCE_TE_THREADID_ALL_USER) {
|
||||
|
||||
Reference in new issue
Block a user