From: Eric Biggers Date: Mon, 16 Sep 2013 04:06:10 +0000 (-0500) Subject: imagex_capture_or_append(): Correctly use template_wim X-Git-Tag: v1.5.1~9 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=199fd93eb6f74d81b304d310c8b1b1bb9b55db82;hp=be1f3294d78e557e6b1a55813c20643ecdaca0e1 imagex_capture_or_append(): Correctly use template_wim --- 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') &&