summaryrefslogtreecommitdiffstats
path: root/apps/plugins/midiplay.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/midiplay.c')
-rw-r--r--apps/plugins/midiplay.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/plugins/midiplay.c b/apps/plugins/midiplay.c
index 4814897906..51882212c7 100644
--- a/apps/plugins/midiplay.c
+++ b/apps/plugins/midiplay.c
@@ -208,6 +208,11 @@ int midimain(void * filename)
printf("\nLoading file");
mf= loadFile(filename);
+ if(mf == NULL)
+ {
+ printf("\nError loading file.");
+ return -1;
+ }
if (initSynth(mf, "/.rockbox/patchset/patchset.cfg", "/.rockbox/patchset/drums.cfg") == -1)
return -1;