extrac32: Extract by default when required files are specified.
This commit is contained in:
parent
8c5deb5649
commit
085c506832
|
@ -149,6 +149,9 @@ int PASCAL wWinMain(HINSTANCE hInstance, HINSTANCE prev, LPWSTR cmdline, int sho
|
||||||
if (!GetFullPathNameW(argv[i], MAX_PATH, path, NULL))
|
if (!GetFullPathNameW(argv[i], MAX_PATH, path, NULL))
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
else if (!cmd)
|
||||||
|
/* Use extraction by default if names of required files presents */
|
||||||
|
cmd = i < argc ? 'E' : 'D';
|
||||||
|
|
||||||
if (!path[0])
|
if (!path[0])
|
||||||
GetCurrentDirectoryW(MAX_PATH, path);
|
GetCurrentDirectoryW(MAX_PATH, path);
|
||||||
|
@ -166,7 +169,6 @@ int PASCAL wWinMain(HINSTANCE hInstance, HINSTANCE prev, LPWSTR cmdline, int sho
|
||||||
/* Extract CAB archive */
|
/* Extract CAB archive */
|
||||||
extract(cabfile, path);
|
extract(cabfile, path);
|
||||||
break;
|
break;
|
||||||
case 0:
|
|
||||||
case 'D':
|
case 'D':
|
||||||
/* Display CAB archive */
|
/* Display CAB archive */
|
||||||
WINE_FIXME("/D not implemented\n");
|
WINE_FIXME("/D not implemented\n");
|
||||||
|
|
Loading…
Reference in New Issue