forked from len0rd/rockbox
Add an error check, just to be safe.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15596 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e1c45d227b
commit
1480d078e7
1 changed files with 2 additions and 1 deletions
|
@ -247,7 +247,8 @@ void draw_album_art(struct gui_wps *gwps, int handle_id, bool clear)
|
|||
#endif
|
||||
|
||||
struct bitmap *bmp;
|
||||
bufgetdata(handle_id, 0, (void *)&bmp);
|
||||
if (bufgetdata(handle_id, 0, (void *)&bmp) <= 0)
|
||||
return;
|
||||
|
||||
short x = data->albumart_x;
|
||||
short y = data->albumart_y;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue