mirror of
https://github.com/libretro/RetroArch
synced 2025-03-20 10:20:51 +00:00
Fix crash when content has no extension (#16078)
This commit is contained in:
parent
01edfbfc16
commit
a3e9525988
@ -465,6 +465,8 @@ bool gfx_thumbnail_set_content_playlist(
|
||||
const char* base_name = path_basename(path_data->content_path);
|
||||
strlcpy(tmp_buf, base_name, sizeof(tmp_buf));
|
||||
content_name_no_ext = path_remove_extension(tmp_buf);
|
||||
if (!content_name_no_ext)
|
||||
content_name_no_ext = tmp_buf;
|
||||
|
||||
gfx_thumbnail_fill_content_img(path_data->content_img_full,
|
||||
sizeof(path_data->content_img_full), content_name_no_ext,false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user