Sergey Guralnik : extrac32: Avoid appending redundant backslash to path end .
Alexandre Julliard
julliard at winehq.org
Thu Apr 11 13:32:20 CDT 2013
Module: wine
Branch: master
Commit: 80bc3838a73aa057624880758d81e476a58e1c88
URL: http://source.winehq.org/git/wine.git/?a=commit;h=80bc3838a73aa057624880758d81e476a58e1c88
Author: Sergey Guralnik <serhio at etersoft.ru>
Date: Thu Apr 11 10:54:02 2013 +0300
extrac32: Avoid appending redundant backslash to path end.
---
programs/extrac32/extrac32.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/programs/extrac32/extrac32.c b/programs/extrac32/extrac32.c
index 644f885..2126c04 100644
--- a/programs/extrac32/extrac32.c
+++ b/programs/extrac32/extrac32.c
@@ -200,7 +200,6 @@ int PASCAL wWinMain(HINSTANCE hInstance, HINSTANCE prev, LPWSTR cmdline, int sho
int i;
WCHAR check, cmd = 0;
WCHAR path[MAX_PATH];
- WCHAR backslash[] = {'\\',0};
LPCWSTR cabfile = NULL;
path[0] = 0;
@@ -273,7 +272,7 @@ int PASCAL wWinMain(HINSTANCE hInstance, HINSTANCE prev, LPWSTR cmdline, int sho
if (cmd == 'E' && !path[0])
GetCurrentDirectoryW(MAX_PATH, path);
- lstrcatW(path, backslash);
+ PathAddBackslashW(path);
/* Execute the specified command */
switch(cmd)
More information about the wine-cvs
mailing list