diff options
author | William Wilgus <wilgus.william@gmail.com> | 2023-11-22 00:07:30 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2023-11-22 00:52:58 -0500 |
commit | 72c539d35e1853980de1d74e65acc9a22caa63f6 (patch) | |
tree | 34c70c631addcd7dac99c294a1316391ef3e22c8 /apps/open_plugin.c | |
parent | 6e90bfe029fc69ad5a3b0e34b60b8a50f9105c2c (diff) | |
download | rockbox-72c539d35e1853980de1d74e65acc9a22caa63f6.tar.gz rockbox-72c539d35e1853980de1d74e65acc9a22caa63f6.zip |
[Bug_Fix] shortcut to directory in .link files caused crash
since the plugin browser is now closed when running plugins
rb->set_current_file() had no valid browser context and used 'random' memory
instead
also adds a way to discard levels so we can load the desired directory
instead of returning to the previous
https://forums.rockbox.org/index.php/topic,54694.0.html
Change-Id: I624246e56d42972bf6a1ce566a209b745de6f30b
Diffstat (limited to 'apps/open_plugin.c')
-rw-r--r-- | apps/open_plugin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/open_plugin.c b/apps/open_plugin.c index 1256db79f8..afe59b38e3 100644 --- a/apps/open_plugin.c +++ b/apps/open_plugin.c | |||
@@ -353,7 +353,7 @@ static bool callback_show_item(char *name, int attr, struct tree_context *tc) | |||
353 | { | 353 | { |
354 | if (strstr(tc->currdir, PLUGIN_DIR) != NULL) | 354 | if (strstr(tc->currdir, PLUGIN_DIR) != NULL) |
355 | return true; | 355 | return true; |
356 | tc->browse = NULL; /* exit immediately */ | 356 | tc->is_browsing = false; /* exit immediately */ |
357 | } | 357 | } |
358 | else if(attr & FILE_ATTR_ROCK) | 358 | else if(attr & FILE_ATTR_ROCK) |
359 | { | 359 | { |