Christian Costa : cabarc: Keep \ in the cab path as FDICopy expects it.
Module: wine Branch: master Commit: b305f11118b0188f7b62dd7a6bcdc39a55bfbc37 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b305f11118b0188f7b62dd7a6b... Author: Christian Costa <titan.costa(a)gmail.com> Date: Mon Dec 3 09:18:32 2012 +0100 cabarc: Keep \ in the cab path as FDICopy expects it. --- programs/cabarc/cabarc.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/programs/cabarc/cabarc.c b/programs/cabarc/cabarc.c index b878df9..bb3ad7e 100644 --- a/programs/cabarc/cabarc.c +++ b/programs/cabarc/cabarc.c @@ -620,6 +620,7 @@ int wmain( int argc, WCHAR *argv[] ) WCHAR *p, *command; char buffer[MAX_PATH]; + char filename[MAX_PATH]; char *cab_file, *file_part; int i; @@ -688,14 +689,15 @@ int wmain( int argc, WCHAR *argv[] ) WINE_ERR( "cannot get full name for %s\n", wine_dbgstr_a( cab_file )); return 1; } - file_part[-1] = 0; + strcpy(filename, file_part); + file_part[0] = 0; /* map slash to backslash in all file arguments */ for (i = 1; i < argc; i++) for (p = argv[i]; *p; p++) if (*p == '/') *p = '\\'; opt_files = argv + 1; - opt_cab_file = file_part; + opt_cab_file = filename; switch (*command) {
participants (1)
-
Alexandre Julliard