Fix error message on Windows

This commit is contained in:
Niels Dossche 2025-02-15 00:23:38 +01:00
parent b3dd5a4c86
commit c696087e32
No known key found for this signature in database
GPG key ID: B8A8AD166DF0E2E5

View file

@ -61,7 +61,7 @@ static ssize_t php_gziop_read(php_stream *stream, char *buf, size_t count)
}
if (UNEXPECTED(read < 0)) {
php_gziop_report_errors(stream, count, "Read");
php_gziop_report_errors(stream, chunk_size, "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;
if (UNEXPECTED(written < 0)) {
php_gziop_report_errors(stream, count, "Write");
php_gziop_report_errors(stream, chunk_size, "Write");
return written;
}