From d7e9b0e74f324400a4bbbe5e66d25b1d6d75625c Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Tue, 21 May 2013 20:49:00 -0500 Subject: [PATCH 1/1] imagex.c: Check return value from wimlib_set_boot_idx() --- programs/imagex.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- 2.43.0