extrac32: Get default path only when it is really necessary.

This commit is contained in:
Sergey Guralnik 2013-03-30 07:27:44 +02:00 committed by Alexandre Julliard
parent 085c506832
commit da46ce10de
1 changed files with 1 additions and 1 deletions

View File

@ -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);