bzip2-1.0.8 dlltest.c suggestions/questions

Andreas Schniertshauer andreas@schniertshauer.de
Wed Jan 1 00:00:00 GMT 2020


Hi,

the BZ2_LIBNAME in dlltest.c says libbz2-1.0.2.DLL
shouldn't it be 1.0.8?
Is the version number necessary in the filename?
Or could it be libbz2.DLL without the version?

In the same file in function BZ2DLLLoadLibrary a FreeLibrary(hLib); is 
missing in the section
    if (!BZ2_bzlibVersion || !BZ2_bzopen || !BZ2_bzdopen
        || !BZ2_bzread || !BZ2_bzwrite || !BZ2_bzflush
        || !BZ2_bzclose || !BZ2_bzerror) {
       fprintf(stderr,"GetProcAddress failed.\n");

Kind regards,
Andreas.



More information about the Bzip2-devel mailing list