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