Re: [7/9] msvcirt: Implement stdiobuf::setrwbuf
2 Oct
2015
2 Oct
'15
11 a.m.
On 10/02/15 15:03, Iván Matellanes wrote:
+ if (buffer_size < 0) + return 0; + if (read_size == 0 && write_size == 0) { + this->base.unbuffered = 1; + return 0; + } Something like this makes more sense (and matches Windows 7 behavior): if (read_size < 0 || write_size < 0) return 0; if (!buffer_size) { this->base.unbuffered = 1; return 0; }
Thanks, Piotr
3723
Age (days ago)
3723
Last active (days ago)
0 comments
1 participants
participants (1)
-
Piotr Caban