mirror of
https://github.com/wiiu-env/libfat.git
synced 2024-11-22 09:59:18 +01:00
commit
1e1e9a23dd
@ -602,7 +602,7 @@ static bool _FAT_check_position_for_next_cluster(struct _reent *r,
|
|||||||
// do nothing if no more data to write
|
// do nothing if no more data to write
|
||||||
if (remain == 0) return true;
|
if (remain == 0) return true;
|
||||||
if (flagNoError && *flagNoError == false) return false;
|
if (flagNoError && *flagNoError == false) return false;
|
||||||
if ((remain < 0) || (position->sector > partition->sectorsPerCluster)) {
|
if (position->sector > partition->sectorsPerCluster) {
|
||||||
// invalid arguments - internal error
|
// invalid arguments - internal error
|
||||||
r->_errno = EINVAL;
|
r->_errno = EINVAL;
|
||||||
goto err;
|
goto err;
|
||||||
|
Loading…
Reference in New Issue
Block a user