From ee417c0f75985d124773d1a5458fa524579b9cc7 Mon Sep 17 00:00:00 2001 From: baidxi Date: Sun, 19 Nov 2023 21:52:50 +0800 Subject: [PATCH] fix dynamic wallpaper bug (#15927) Signed-off-by: juno Co-authored-by: juno --- menu/drivers/xmb.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 7f91925a08..9c4a9ab492 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -1153,9 +1153,12 @@ static char* xmb_path_dynamic_wallpaper(xmb_handle_t *xmb) path[++len] = '\0'; /* Do not update wallpaper in "Load Content" playlists */ - if ( (xmb->categories_selection_ptr == 0 && depth > 4) - || (xmb->categories_selection_ptr > xmb->system_tab_end && depth > 1)) + if ((xmb->categories_selection_ptr == 0 && depth > 4) + || (xmb->categories_selection_ptr > xmb->system_tab_end && depth > 1)) { + if (string_is_empty(xmb->bg_file_path)) + return NULL; return strdup(xmb->bg_file_path); + } if (!path_is_valid(path)) fill_pathname_application_special(path, sizeof(path),