diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-10-09 05:26:36 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-10-09 05:26:36 +0000 |
commit | ecf7d95086508f006bd8bfac4bd3a634a56bf652 (patch) | |
tree | 5939dfc50f4f6282e15adfa3ed2197ac307ee570 /apps/wps-display.c | |
parent | ee7a8889af5984ff06116ddc5d462ab6d670b700 (diff) | |
download | rockbox-ecf7d95086508f006bd8bfac4bd3a634a56bf652.tar.gz rockbox-ecf7d95086508f006bd8bfac4bd3a634a56bf652.zip |
The wps_loaded flag was set too early
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2538 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/wps-display.c')
-rw-r--r-- | apps/wps-display.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c index b629a06c4e..b1a67884df 100644 --- a/apps/wps-display.c +++ b/apps/wps-display.c | |||
@@ -116,8 +116,6 @@ bool wps_load(char* file, bool display) | |||
116 | char buffer[FORMAT_BUFFER_SIZE]; | 116 | char buffer[FORMAT_BUFFER_SIZE]; |
117 | int fd; | 117 | int fd; |
118 | 118 | ||
119 | wps_loaded = true; | ||
120 | |||
121 | fd = open(file, O_RDONLY); | 119 | fd = open(file, O_RDONLY); |
122 | 120 | ||
123 | if (-1 != fd) | 121 | if (-1 != fd) |
@@ -144,6 +142,8 @@ bool wps_load(char* file, bool display) | |||
144 | sleep(HZ); | 142 | sleep(HZ); |
145 | } | 143 | } |
146 | 144 | ||
145 | wps_loaded = true; | ||
146 | |||
147 | return numread > 0; | 147 | return numread > 0; |
148 | } | 148 | } |
149 | 149 | ||