diff options
| author | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-11-12 14:26:47 +0000 |
|---|---|---|
| committer | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-11-12 14:26:47 +0000 |
| commit | 1480d078e7d6c55e91a60050f1f943468c6fe89c (patch) | |
| tree | 67d8de746bdab45729c09d9e13baf9d99d014032 | |
| parent | e1c45d227b0f52189e13baf1359ddd17e1d48745 (diff) | |
| download | rockbox-1480d078e7d6c55e91a60050f1f943468c6fe89c.zip rockbox-1480d078e7d6c55e91a60050f1f943468c6fe89c.tar.gz rockbox-1480d078e7d6c55e91a60050f1f943468c6fe89c.tar.bz2 rockbox-1480d078e7d6c55e91a60050f1f943468c6fe89c.tar.xz | |
Add an error check, just to be safe.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15596 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/recorder/albumart.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/recorder/albumart.c b/apps/recorder/albumart.c index 2722b57..ef89b06 100644 --- a/apps/recorder/albumart.c +++ b/apps/recorder/albumart.c @@ -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; |