X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fcompat.c;h=4000724620b87f8fb985325af339568f01e7c8de;hb=41f15b937564a3ae58f199c27e8290a1b1a40856;hp=2de1c3591b95080b42e6f5b54858dc53c67ab7f3;hpb=157b27cfdcdb01215cacfa3d16b2252f3eb889bd;p=wimlib 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;