Page 1 of 1

wimlib_free() return code

Posted: Tue Nov 26, 2019 2:02 pm
by alekc
I am trying to create a volume image using the calls is this order:

Code: Select all

wimlib_create_new_wim(WIMLIB_COMPRESSION_TYPE_LZX, wimFile)
wimlib_register_progress_function(wimFile, wim_progress, ....)
wimlib_add_image(wimFile, volumeName, .....) // volumeName -> \\?\Volume{<GUID>}\
wimlib_write(wimFile, ...., WIMLIB_ALL_IMAGES, WIMLIB_WRITE_FLAG_FSYNC, 0)
wimlib_set_image_descripton(wimFile, 1, ...) // optional
wimlib_register_progress_function(wimFile, NULL, ....) // optional
wimlib_free(wimFile)
And the last free call always returns an error code WIMLIB_ERR_ALREADY_LOCKED(1).
Is this a normal situation and / or how can I fix this?

Re: wimlib_free() return code

Posted: Tue Nov 26, 2019 5:28 pm
by synchronicity
wimlib_free() returns void. See wimlib.h.

Re: wimlib_free() return code

Posted: Wed Nov 27, 2019 9:25 am
by alekc
oops, I made a mistake when translating the headers, thanks :)