mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
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:
parent
e760a5abbf
commit
5cdd920d12
11 changed files with 20 additions and 14 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue