1
0
Fork 0
forked from len0rd/rockbox

Allow access to the last sector of the ramdisk as well

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21930 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Frank Gevaerts 2009-07-17 21:02:44 +00:00
parent a0d630f3de
commit 8cba8447f8

View file

@ -36,7 +36,7 @@ int ramdisk_read_sectors(IF_MV2(int drive,)
int count,
void* buf)
{
if(start+count>=NUM_SECTORS)
if(start+count>NUM_SECTORS)
{
return -1;
}
@ -49,7 +49,7 @@ int ramdisk_write_sectors(IF_MV2(int drive,)
int count,
const void* buf)
{
if(start+count>=NUM_SECTORS)
if(start+count>NUM_SECTORS)
{
return -1;
}