mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 19:26:42 +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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user