Sergey Guralnik : extrac32: Extract by default when required files are specified.

Alexandre Julliard julliard at winehq.org
Tue Apr 2 13:38:36 CDT 2013


Module: wine
Branch: master
Commit: 085c50683265b7482be2eb9b53d8367989ad3d2b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=085c50683265b7482be2eb9b53d8367989ad3d2b

Author: Sergey Guralnik <serhio at etersoft.ru>
Date:   Sat Mar 30 07:22:41 2013 +0200

extrac32: Extract by default when required files are specified.

---

 programs/extrac32/extrac32.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/programs/extrac32/extrac32.c b/programs/extrac32/extrac32.c
index ade7456..5216627 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");




More information about the wine-cvs mailing list