Better error handling when loading WPS config file

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3632 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2003-04-30 02:55:23 +00:00
parent a4ad4f7ef6
commit c4cdc75ceb

View file

@ -163,7 +163,7 @@ bool wps_load(char* file, bool display)
fd = open(file, O_RDONLY);
if (-1 != fd)
if (fd >= 0)
{
int numread = read(fd, buffer, sizeof(buffer) - 1);