mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix error message on Windows
This commit is contained in:
parent
b3dd5a4c86
commit
c696087e32
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ static ssize_t php_gziop_read(php_stream *stream, char *buf, size_t count)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (UNEXPECTED(read < 0)) {
|
if (UNEXPECTED(read < 0)) {
|
||||||
php_gziop_report_errors(stream, count, "Read");
|
php_gziop_report_errors(stream, chunk_size, "Read");
|
||||||
return read;
|
return read;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ static ssize_t php_gziop_write(php_stream *stream, const char *buf, size_t count
|
||||||
count -= chunk_size;
|
count -= chunk_size;
|
||||||
|
|
||||||
if (UNEXPECTED(written < 0)) {
|
if (UNEXPECTED(written < 0)) {
|
||||||
php_gziop_report_errors(stream, count, "Write");
|
php_gziop_report_errors(stream, chunk_size, "Write");
|
||||||
return written;
|
return written;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue