filestream_seek does not return the position in the file
This commit is contained in:
parent
5715774c3f
commit
89265f5cf2
|
@ -468,7 +468,10 @@ error:
|
|||
int filestream_eof(RFILE *stream)
|
||||
{
|
||||
size_t current_position = filestream_tell(stream);
|
||||
size_t end_position = filestream_seek(stream, 0, SEEK_END);
|
||||
size_t end_position;
|
||||
|
||||
filestream_seek(stream, 0, SEEK_END);
|
||||
end_position = filestream_tell(stream);
|
||||
|
||||
filestream_seek(stream, current_position, SEEK_SET);
|
||||
|
||||
|
|
Loading…
Reference in New Issue