Module: wine Branch: master Commit: 333eea8331b19b9b9276bfeefe6c8ffbd5a8844f URL: https://gitlab.winehq.org/wine/wine/-/commit/333eea8331b19b9b9276bfeefe6c8ff...
Author: Danyil Blyschak dblyschak@codeweavers.com Date: Thu Jun 13 12:40:23 2024 -0500
opcservices: Suppress unnecessary zlib deflate warnings.
Zlib documents that negative return values for this function are errors and positive ones are special but normal events.
---
dlls/opcservices/compress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/opcservices/compress.c b/dlls/opcservices/compress.c index 186469a782c..841c674c26c 100644 --- a/dlls/opcservices/compress.c +++ b/dlls/opcservices/compress.c @@ -257,7 +257,7 @@ static void compress_write_content(struct zip_archive *archive, IStream *content z_str.avail_out = sizeof(archive->output_buffer); z_str.next_out = archive->output_buffer;
- if ((ret = deflate(&z_str, flush))) + if ((ret = deflate(&z_str, flush)) < 0) WARN("Failed to deflate, ret %d.\n", ret); have = sizeof(archive->output_buffer) - z_str.avail_out; compress_write(archive, archive->output_buffer, have);