cabarc: Fix printing of a not recognized compression type argument.
Dmitry Timoshkov
dmitry at baikal.ru
Thu Jan 9 07:32:44 CST 2014
---
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;
--
1.8.5.2
More information about the wine-patches
mailing list