X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fcompat.c;h=4000724620b87f8fb985325af339568f01e7c8de;hp=2de1c3591b95080b42e6f5b54858dc53c67ab7f3;hb=864db0e0929d60b33b8b0df35ccb68d43e7f8684;hpb=157b27cfdcdb01215cacfa3d16b2252f3eb889bd diff --git a/src/compat.c b/src/compat.c index 2de1c359..40007246 100644 --- a/src/compat.c +++ b/src/compat.c @@ -43,7 +43,7 @@ do_compress(const void *udata, unsigned ulen, void *cdata, int ctype) unsigned clen; if (wimlib_create_compressor(ctype, 32768, NULL, &c)) - return -1; + return 0; clen = wimlib_compress(udata, ulen, cdata, ulen - 1, c); wimlib_free_compressor(c); return clen;