mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-27 04:08:37 +01:00
verify thread wait type before resuming thread from plugin waiting
This commit is contained in:
1 parent
326448636b
commit
7bab953c92
1 file changed
+1
-1
@@ -2308,7 +2308,7 @@ void __KernelReturnFromModuleFunc() {
|
||||
if (module->pluginWaitingThread) {
|
||||
u32 error;
|
||||
PSPThread *plugin_waiting_thread = kernelObjects.Get<PSPThread>(module->pluginWaitingThread, error);
|
||||
if (plugin_waiting_thread) {
|
||||
if (plugin_waiting_thread && HLEKernel::VerifyWait(module->pluginWaitingThread, WAITTYPE_PLUGIN, plugin_waiting_thread->moduleId)) {
|
||||
PSPModule *plugin_waiting_module = kernelObjects.Get<PSPModule>(plugin_waiting_thread->moduleId, error);
|
||||
if (plugin_waiting_module) {
|
||||
for (auto it = plugin_waiting_module->startingPlugins.begin(), end = plugin_waiting_module->startingPlugins.end(); it < end; ++it) {
|
||||
|
||||
Reference in new issue
Block a user