if (ret != 0) {
fputs("Failed to apply WIM image\n", stderr);
fprintf(stderr, "Error code: %s\n", wimlib_get_error_string(ret));
if (ret != 0) {
fputs("Failed to apply WIM image\n", stderr);
fprintf(stderr, "Error code: %s\n", wimlib_get_error_string(ret));