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