mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
plugins: fix plugin handle reset after plugin load failed
e519356
prevents loading further plugins otherwise
Change-Id: I97dc14aa5d0e0471d264f006593f62da3fd4394a
This commit is contained in:
parent
33cbefb310
commit
05a77178ff
1 changed files with 2 additions and 0 deletions
|
@ -913,6 +913,7 @@ int plugin_load(const char* plugin, const void* parameter)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
lc_close(current_plugin_handle);
|
lc_close(current_plugin_handle);
|
||||||
|
current_plugin_handle = NULL;
|
||||||
splash(HZ*2, ID2P(LANG_PLUGIN_WRONG_MODEL));
|
splash(HZ*2, ID2P(LANG_PLUGIN_WRONG_MODEL));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -921,6 +922,7 @@ int plugin_load(const char* plugin, const void* parameter)
|
||||||
p_hdr->api_size > sizeof(struct plugin_api))
|
p_hdr->api_size > sizeof(struct plugin_api))
|
||||||
{
|
{
|
||||||
lc_close(current_plugin_handle);
|
lc_close(current_plugin_handle);
|
||||||
|
current_plugin_handle = NULL;
|
||||||
splash(HZ*2, ID2P(LANG_PLUGIN_WRONG_VERSION));
|
splash(HZ*2, ID2P(LANG_PLUGIN_WRONG_VERSION));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue