fixed sc_decompress_zlib_alloc return code
This commit is contained in:
parent
6e48de83c7
commit
b6fadb469f
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user