mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-12 00:47:49 -04:00
plugins: view-text, zxbox: fix panic when called without parameter
Change-Id: Ife654e6dcb29916f661ce0c2232f4060ac02f5d2
This commit is contained in:
parent
a2e63fca59
commit
f316535684
2 changed files with 9 additions and 4 deletions
|
|
@ -28,6 +28,8 @@
|
|||
/* this is the plugin entry point */
|
||||
enum plugin_status plugin_start(const void* parameter)
|
||||
{
|
||||
if (!parameter)
|
||||
return PLUGIN_ERROR;
|
||||
|
||||
char** title_and_text = (char**)parameter;
|
||||
view_text(title_and_text[0], title_and_text[1]);
|
||||
|
|
|
|||
|
|
@ -57,6 +57,9 @@ long start_time IBSS_ATTR = 0;
|
|||
|
||||
enum plugin_status plugin_start(const void* parameter)
|
||||
{
|
||||
if (!parameter)
|
||||
return PLUGIN_ERROR;
|
||||
|
||||
#if LCD_DEPTH > 1
|
||||
rb->lcd_set_backdrop(NULL);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue