wimlib_free() return code
Posted: Tue Nov 26, 2019 2:02 pm
I am trying to create a volume image using the calls is this order:
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?
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)
Is this a normal situation and / or how can I fix this?