Code: Select all
typedef int (*OodleLZ_Decompress)(unsigned char* in, int insz, unsigned char* out, int outsz, int a, int b, int c,
void* d, void* e, void* f, void* g, void* h, void* i, int j);
OodleLZ_Decompress decompressor; // on getprocaddress it works fine without error
When I call the following
Code: Select all
uncompr_chunk_size = decompressor(buf, (int)chunk_size, outbuf, (int)uncompr_chunk_size, 0, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 3);
It crashes the program. The stream is valid (correct header 0x8C06 kraken.. with a bit of the uncompressed data at the header, i think!), it must be the calling of the function. Any ideas what the problem is? The buffers are initialized too
EDIT: The stream is valid, I created a BMS script to extract the compressed stream and it worked fine.