extrac32: Avoid appending redundant backslash to path end.
This commit is contained in:
parent
7925c9b028
commit
80bc3838a7
|
@ -200,7 +200,6 @@ int PASCAL wWinMain(HINSTANCE hInstance, HINSTANCE prev, LPWSTR cmdline, int sho
|
||||||
int i;
|
int i;
|
||||||
WCHAR check, cmd = 0;
|
WCHAR check, cmd = 0;
|
||||||
WCHAR path[MAX_PATH];
|
WCHAR path[MAX_PATH];
|
||||||
WCHAR backslash[] = {'\\',0};
|
|
||||||
LPCWSTR cabfile = NULL;
|
LPCWSTR cabfile = NULL;
|
||||||
|
|
||||||
path[0] = 0;
|
path[0] = 0;
|
||||||
|
@ -273,7 +272,7 @@ int PASCAL wWinMain(HINSTANCE hInstance, HINSTANCE prev, LPWSTR cmdline, int sho
|
||||||
if (cmd == 'E' && !path[0])
|
if (cmd == 'E' && !path[0])
|
||||||
GetCurrentDirectoryW(MAX_PATH, path);
|
GetCurrentDirectoryW(MAX_PATH, path);
|
||||||
|
|
||||||
lstrcatW(path, backslash);
|
PathAddBackslashW(path);
|
||||||
|
|
||||||
/* Execute the specified command */
|
/* Execute the specified command */
|
||||||
switch(cmd)
|
switch(cmd)
|
||||||
|
|
Loading…
Reference in New Issue