imagex.c: Check return value from wimlib_set_boot_idx()
authorEric Biggers <ebiggers3@gmail.com>
Wed, 22 May 2013 01:49:00 +0000 (20:49 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Wed, 22 May 2013 01:49:00 +0000 (20:49 -0500)
programs/imagex.c

index ebbb650..15f68d1 100644 (file)
@@ -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) {