wimlib_free() return code

Comments, questions, bug reports, etc.
Post Reply
alekc
Posts: 4
Joined: Tue Nov 26, 2019 1:51 pm

wimlib_free() return code

Post 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?
synchronicity
Site Admin
Posts: 472
Joined: Sun Aug 02, 2015 10:31 pm

Re: wimlib_free() return code

Post by synchronicity »

wimlib_free() returns void. See wimlib.h.
alekc
Posts: 4
Joined: Tue Nov 26, 2019 1:51 pm

Re: wimlib_free() return code

Post by alekc »

oops, I made a mistake when translating the headers, thanks :)
Post Reply