1
0
Fork 0
forked from len0rd/rockbox

The wps_loaded flag was set too early

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2538 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2002-10-09 05:26:36 +00:00
parent ee7a8889af
commit ecf7d95086

View file

@ -116,8 +116,6 @@ bool wps_load(char* file, bool display)
char buffer[FORMAT_BUFFER_SIZE];
int fd;
wps_loaded = true;
fd = open(file, O_RDONLY);
if (-1 != fd)
@ -144,6 +142,8 @@ bool wps_load(char* file, bool display)
sleep(HZ);
}
wps_loaded = true;
return numread > 0;
}