]> wimlib.net Git - wimlib/blobdiff - programs/imagex.c
imagex_capture_or_append(): Correctly use template_wim
[wimlib] / programs / imagex.c
index b74502b5fc0948e6b1e1ee5be4f14bb0e10ee454..d84feb3e77aa6bb686b6a77ec944f9d89e2c90d5 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') &&