From 199fd93eb6f74d81b304d310c8b1b1bb9b55db82 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sun, 15 Sep 2013 23:06:10 -0500 Subject: [PATCH] imagex_capture_or_append(): Correctly use template_wim --- NEWS | 4 ++++ programs/imagex.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index c598fe98..2847115b 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,10 @@ Version 1.5.1: wimlib can now open WinPE WIMs from WAIK v2.1, which had a quirk that needed to be handled. + A bug related to the interpretation of the IMAGE in the + --update-of=[WIMFILE:]IMAGE argument to `wimlib-imagex capture' and + `wimlib-imagex append' has been fixed. + Version 1.5.0: Added support for "pipable" WIMs. Pipable WIMs allow capturing images to standard output and applying images from standard input, but they are diff --git a/programs/imagex.c b/programs/imagex.c index b74502b5..d84feb3e 100644 --- a/programs/imagex.c +++ b/programs/imagex.c @@ -1982,7 +1982,7 @@ imagex_capture_or_append(int argc, tchar **argv, int cmd) unsigned long n; struct wimlib_wim_info info; - wimlib_get_wim_info(wim, &info); + wimlib_get_wim_info(template_wim, &info); n = tstrtoul(template_image_name_or_num + 1, &tmp, 10); if (n >= 1 && n <= info.image_count && *tmp == T('\0') && -- 2.43.0