From 085c50683265b7482be2eb9b53d8367989ad3d2b Mon Sep 17 00:00:00 2001 From: Sergey Guralnik Date: Sat, 30 Mar 2013 07:22:41 +0200 Subject: [PATCH] extrac32: Extract by default when required files are specified. --- programs/extrac32/extrac32.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/programs/extrac32/extrac32.c b/programs/extrac32/extrac32.c index ade7456bd82..52166279fec 100644 --- a/programs/extrac32/extrac32.c +++ b/programs/extrac32/extrac32.c @@ -149,6 +149,9 @@ int PASCAL wWinMain(HINSTANCE hInstance, HINSTANCE prev, LPWSTR cmdline, int sho if (!GetFullPathNameW(argv[i], MAX_PATH, path, NULL)) return 0; } + else if (!cmd) + /* Use extraction by default if names of required files presents */ + cmd = i < argc ? 'E' : 'D'; if (!path[0]) GetCurrentDirectoryW(MAX_PATH, path); @@ -166,7 +169,6 @@ int PASCAL wWinMain(HINSTANCE hInstance, HINSTANCE prev, LPWSTR cmdline, int sho /* Extract CAB archive */ extract(cabfile, path); break; - case 0: case 'D': /* Display CAB archive */ WINE_FIXME("/D not implemented\n");