Page 1 of 1

UncompressMemory - detailed error handling

Posted: Wed Jun 22, 2016 1:17 pm
by Lebostein
At the moment UncompressMemory() returns -1 if the data could not be uncompressed.

My wish:
result = -1: no valid compressed data (decompression algorithm can not start)
result = -2: output buffer to small (decompression algorithm reaches the end of the writeable output buffer)

In case of result = -2 it would be possible to increase the buffer to start a new trial. At the moment I am not sure if the data are invalid or the output buffer to small.