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:
parent
ee7a8889af
commit
ecf7d95086
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue