imagex_capture_or_append(): Correctly use template_wim
authorEric Biggers <ebiggers3@gmail.com>
Mon, 16 Sep 2013 04:06:10 +0000 (23:06 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Mon, 16 Sep 2013 04:06:40 +0000 (23:06 -0500)
NEWS
programs/imagex.c

diff --git a/NEWS b/NEWS
index c598fe9..2847115 100644 (file)
--- 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.
 
        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
 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
index b74502b..d84feb3 100644 (file)
@@ -1982,7 +1982,7 @@ imagex_capture_or_append(int argc, tchar **argv, int cmd)
                        unsigned long n;
                        struct wimlib_wim_info info;
 
                        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') &&
                        n = tstrtoul(template_image_name_or_num + 1, &tmp, 10);
                        if (n >= 1 && n <= info.image_count &&
                            *tmp == T('\0') &&