mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 09:03:25 +00:00
fix so fread return right value of bytes/chars it reads
make one more wine test pass in msvcrt file svn path=/trunk/; revision=22155
This commit is contained in:
parent
20c6fb757f
commit
b1fe06cdfe
1 changed files with 4 additions and 1 deletions
|
@ -81,5 +81,8 @@ size_t fread(void *vptr, size_t size, size_t count, FILE *iop)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return count - (to_read/size);
|
// return count - (to_read/size)
|
||||||
|
/* FIXME is this formual right ?, I copy the formula from djgpp
|
||||||
|
in our to_read or copy ? */
|
||||||
|
return size != 0 ? count - ((to_read + size - 1) / size) : 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue