Michael Jung : unixfs: Only append '/' to base path if not already present in

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jan 31 11:23:24 CST 2006


Module: wine
Branch: refs/heads/master
Commit: e2d1c1038a5c535e6f7ea979a6cef457e790df6a
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=e2d1c1038a5c535e6f7ea979a6cef457e790df6a

Author: Michael Jung <mjung at iss.tu-darmstadt.de>
Date:   Tue Jan 31 18:03:45 2006 +0100

unixfs: Only append '/' to base path if not already present in
UNIXFS_get_unix_path.

---

 dlls/shell32/shfldr_unixfs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/shell32/shfldr_unixfs.c b/dlls/shell32/shfldr_unixfs.c
index 4279965..b0a513a 100644
--- a/dlls/shell32/shfldr_unixfs.c
+++ b/dlls/shell32/shfldr_unixfs.c
@@ -435,7 +435,7 @@ static BOOL UNIXFS_get_unix_path(LPCWSTR
     HeapFree(GetProcessHeap(), 0, pszUnixPath);
     if (!pElement) return FALSE;
     strcpy(szPath, pElement);
-    strcat(szPath, "/");
+    if (szPath[strlen(szPath)-1] != '/') strcat(szPath, "/");
     free(pElement);
 
     /* Append the part relative to the drive symbolic link target. */




More information about the wine-cvs mailing list