wimlib_free() return code

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

wimlib_free() return code

Post by alekc » Tue Nov 26, 2019 2:02 pm

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: 301
Joined: Sun Aug 02, 2015 10:31 pm

Re: wimlib_free() return code

Post by synchronicity » Tue Nov 26, 2019 5:28 pm

wimlib_free() returns void. See wimlib.h.

alekc
Posts: 2
Joined: Tue Nov 26, 2019 1:51 pm

Re: wimlib_free() return code

Post by alekc » Wed Nov 27, 2019 9:25 am

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

Post Reply