From dcc057c686dce5b1cc492825091bfbaddeff3f83 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Thu, 9 Jan 2014 22:32:44 +0900 Subject: [PATCH] cabarc: Fix printing of a not recognized compression type argument. --- programs/cabarc/cabarc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/programs/cabarc/cabarc.c b/programs/cabarc/cabarc.c index 032aab2f565..c49796d7b15 100644 --- a/programs/cabarc/cabarc.c +++ b/programs/cabarc/cabarc.c @@ -666,7 +666,8 @@ int wmain( int argc, WCHAR *argv[] ) else if (!strcmpiW( argv[1], mszipW )) opt_compression = tcompTYPE_MSZIP; else { - WINE_MESSAGE( "cabarc: Unknown compression type '%s'\n", optarg ); + char *arg = strdupWtoA( CP_ACP, argv[1] ); + WINE_MESSAGE( "cabarc: Unknown compression type '%s'\n", arg); return 1; } break;