]> wimlib.net Git - wimlib/commitdiff
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 ebbb650eb1680f23c032ea016921d07f463032cd..15f68d1aa9fb1c330836f25975e176796efb3f3d 100644 (file)
@@ -2584,7 +2584,9 @@ imagex_info(int argc, tchar **argv)
                        } else {
                                tprintf(T("Marking image %d as bootable.\n"),
                                        image);
                        } 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) {
                        }
                }
                if (new_name) {