fixed sc_decompress_zlib_alloc return code

This commit is contained in:
Frank Morgner 2019-01-29 11:20:14 +01:00
parent 6e48de83c7
commit b6fadb469f

View File

@ -181,7 +181,7 @@ static int sc_decompress_zlib_alloc(u8** out, size_t* outLen, const u8* in, size
if(*out) if(*out)
free(*out); free(*out);
*out = NULL; *out = NULL;
return Z_MEM_ERROR; return SC_ERROR_OUT_OF_MEMORY;
} }
*out = buf; *out = buf;
gz.next_out = buf + *outLen; gz.next_out = buf + *outLen;