Correct checking return value of open in plugins.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23874 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Teruaki Kawashima 2009-12-06 13:52:28 +00:00
parent e760a5abbf
commit 5cdd920d12
11 changed files with 20 additions and 14 deletions

View file

@ -160,7 +160,7 @@ struct GPatch * gusload(char * filename)
int file = rb->open(filename, O_RDONLY);
if(file == -1)
if(file < 0)
{
char message[50];
rb->snprintf(message, 50, "Error opening %s", filename);