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:
parent
a0d630f3de
commit
8cba8447f8
1 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ int ramdisk_read_sectors(IF_MV2(int drive,)
|
||||||
int count,
|
int count,
|
||||||
void* buf)
|
void* buf)
|
||||||
{
|
{
|
||||||
if(start+count>=NUM_SECTORS)
|
if(start+count>NUM_SECTORS)
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,7 @@ int ramdisk_write_sectors(IF_MV2(int drive,)
|
||||||
int count,
|
int count,
|
||||||
const void* buf)
|
const void* buf)
|
||||||
{
|
{
|
||||||
if(start+count>=NUM_SECTORS)
|
if(start+count>NUM_SECTORS)
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue