Dmitry Timoshkov : cabarc: Fix printing of a not recognized compression type argument.
Module: wine Branch: master Commit: dcc057c686dce5b1cc492825091bfbaddeff3f83 URL: http://source.winehq.org/git/wine.git/?a=commit;h=dcc057c686dce5b1cc49282509... Author: Dmitry Timoshkov <dmitry(a)baikal.ru> Date: Thu Jan 9 22:32:44 2014 +0900 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 032aab2..c49796d 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;
participants (1)
-
Alexandre Julliard