From: Eric Biggers Date: Wed, 22 May 2013 01:49:00 +0000 (-0500) Subject: imagex.c: Check return value from wimlib_set_boot_idx() X-Git-Tag: v1.4.1~48 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=d7e9b0e74f324400a4bbbe5e66d25b1d6d75625c;hp=30cfd915ede8a2b24b693525ff835b2f03220cc9 imagex.c: Check return value from wimlib_set_boot_idx() --- diff --git a/programs/imagex.c b/programs/imagex.c index ebbb650e..15f68d1a 100644 --- a/programs/imagex.c +++ b/programs/imagex.c @@ -2584,7 +2584,9 @@ imagex_info(int argc, tchar **argv) } else { tprintf(T("Marking image %d as bootable.\n"), image); - wimlib_set_boot_idx(w, image); + ret = wimlib_set_boot_idx(w, image); + if (ret) + goto out; } } if (new_name) {