mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
Fix a bug introduced in r25145
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25148 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
16587900da
commit
a9e732c6df
1 changed files with 6 additions and 1 deletions
|
|
@ -920,9 +920,14 @@ uint32_t ftl_vfl_write(uint32_t vpage, uint32_t count, void* buffer, void* spare
|
|||
uint32_t i;
|
||||
for (i = 0; i < count; i++)
|
||||
{
|
||||
uint32_t rc = ftl_vfl_write_single(vpage + i, buffer, sparebuffer);
|
||||
void* databuf = (void*)0;
|
||||
void* sparebuf = (void*)0;
|
||||
if (buffer) databuf = (void*)((uint32_t)buffer + 0x800 * i);
|
||||
if (sparebuffer) sparebuf = (void*)((uint32_t)sparebuffer + 0x40 * i);
|
||||
uint32_t rc = ftl_vfl_write_single(vpage + i, databuf, sparebuf);
|
||||
if (rc) return rc;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue