mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-11-25 06:06:53 +01:00
Add missing lock to gLoadedData access
This commit is contained in:
parent
d2adc304f0
commit
9e4930acec
@ -74,8 +74,11 @@ extern "C" PluginBackendApiErrorType WUPSLoadPluginAsData(WUPSBackendGetPluginIn
|
|||||||
return PLUGIN_BACKEND_API_ERROR_FAILED_ALLOC;
|
return PLUGIN_BACKEND_API_ERROR_FAILED_ALLOC;
|
||||||
} else {
|
} else {
|
||||||
*out = pluginData->getHandle();
|
*out = pluginData->getHandle();
|
||||||
|
{
|
||||||
|
std::lock_guard lockLoadedData(gLoadedDataMutex);
|
||||||
gLoadedData.insert(std::move(pluginData));
|
gLoadedData.insert(std::move(pluginData));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return PLUGIN_BACKEND_API_ERROR_NONE;
|
return PLUGIN_BACKEND_API_ERROR_NONE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user