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.