10 Oct
2006
10 Oct
'06
3:36 p.m.
Markus Amsler <markus.amsler(a)oribi.org> writes:
+ /* fill empty buffer on small reads */ + if(!file->_cnt && rcnt <= MSVCRT_BUFSIZ) { + MSVCRT__filbuf(file); + /* reset internal buffer */ + file->_cnt++; + file->_ptr = file->_base; + }
You need to handle errors properly, and MSVCRT__filbuf is probably not the most appropriate thing to use here, a simple read would be better. -- Alexandre Julliard julliard(a)winehq.org