From 99b70cadff0780428cd1faea118090e28b35d9c8 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 25 May 2013 22:12:16 -0500 Subject: [PATCH 1/1] imagex: Misc. fixes --- programs/imagex.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/programs/imagex.c b/programs/imagex.c index afcf8def..d86bca3a 100644 --- a/programs/imagex.c +++ b/programs/imagex.c @@ -3024,10 +3024,10 @@ imagex_optimize(int argc, tchar **argv) if (ret) goto out; - old_size = file_get_size(argv[0]); + old_size = file_get_size(wimfile); tprintf(T("\"%"TS"\" original size: "), wimfile); if (old_size == -1) - tfputs(T("Unknown\n"), stdout); + tputs(T("Unknown")); else tprintf(T("%"PRIu64" KiB\n"), old_size >> 10); @@ -3036,10 +3036,10 @@ imagex_optimize(int argc, tchar **argv) if (ret) goto out_wimlib_free; - new_size = file_get_size(argv[0]); + new_size = file_get_size(wimfile); tprintf(T("\"%"TS"\" optimized size: "), wimfile); if (new_size == -1) - tfputs(T("Unknown\n"), stdout); + tputs(T("Unknown")); else tprintf(T("%"PRIu64" KiB\n"), new_size >> 10); @@ -3048,7 +3048,7 @@ imagex_optimize(int argc, tchar **argv) tprintf(T("%lld KiB\n"), ((long long)old_size - (long long)new_size) >> 10); } else { - tfputs(T("Unknown\n"), stdout); + tputs(T("Unknown")); } ret = 0; out_wimlib_free: @@ -3068,7 +3068,7 @@ static int imagex_split(int argc, tchar **argv) { int c; - int open_flags = WIMLIB_OPEN_FLAG_SPLIT_OK; + int open_flags = 0; int write_flags = 0; unsigned long part_size; tchar *tmp; -- 2.43.0