Sergey Guralnik : extrac32: Get default path only when it is really necessary.
Module: wine Branch: master Commit: da46ce10deeb8a327ad445ed86086dec33d16eae URL: http://source.winehq.org/git/wine.git/?a=commit;h=da46ce10deeb8a327ad445ed86... Author: Sergey Guralnik <serhio(a)etersoft.ru> Date: Sat Mar 30 07:27:44 2013 +0200 extrac32: Get default path only when it is really necessary. --- programs/extrac32/extrac32.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/programs/extrac32/extrac32.c b/programs/extrac32/extrac32.c index 5216627..addd732 100644 --- a/programs/extrac32/extrac32.c +++ b/programs/extrac32/extrac32.c @@ -153,7 +153,7 @@ int PASCAL wWinMain(HINSTANCE hInstance, HINSTANCE prev, LPWSTR cmdline, int sho /* Use extraction by default if names of required files presents */ cmd = i < argc ? 'E' : 'D'; - if (!path[0]) + if (cmd == 'E' && !path[0]) GetCurrentDirectoryW(MAX_PATH, path); lstrcatW(path, backslash);
participants (1)
-
Alexandre Julliard