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
1 changed files with 1 additions and 1 deletions

View File

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