diff options
Diffstat (limited to 'apps/plugins/midi/guspat.c')
-rw-r--r-- | apps/plugins/midi/guspat.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/plugins/midi/guspat.c b/apps/plugins/midi/guspat.c index f0f1effd2a..675d6ffe3d 100644 --- a/apps/plugins/midi/guspat.c +++ b/apps/plugins/midi/guspat.c | |||
@@ -94,6 +94,14 @@ struct GPatch * gusload(char * filename) | |||
94 | 94 | ||
95 | int file = rb->open(filename, O_RDONLY); | 95 | int file = rb->open(filename, O_RDONLY); |
96 | 96 | ||
97 | if(file == -1) | ||
98 | { | ||
99 | char message[50]; | ||
100 | snprintf(message, 50, "Error opening %s", filename); | ||
101 | rb->splash(HZ*2, true, message); | ||
102 | return NULL; | ||
103 | } | ||
104 | |||
97 | gp->header=readData(file, 12); | 105 | gp->header=readData(file, 12); |
98 | gp->gravisid=readData(file, 10); | 106 | gp->gravisid=readData(file, 10); |
99 | gp->desc=readData(file, 60); | 107 | gp->desc=readData(file, 60); |