Dmitry Timoshkov : cabarc: Fix printing of a not recognized compression type argument.
Alexandre Julliard
julliard at winehq.org
Thu Jan 9 12:52:50 CST 2014
Module: wine
Branch: master
Commit: dcc057c686dce5b1cc492825091bfbaddeff3f83
URL: http://source.winehq.org/git/wine.git/?a=commit;h=dcc057c686dce5b1cc492825091bfbaddeff3f83
Author: Dmitry Timoshkov <dmitry at 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;
More information about the wine-cvs
mailing list