From e2d1c1038a5c535e6f7ea979a6cef457e790df6a Mon Sep 17 00:00:00 2001 From: Michael Jung Date: Tue, 31 Jan 2006 18:03:45 +0100 Subject: [PATCH] unixfs: Only append '/' to base path if not already present in UNIXFS_get_unix_path. --- dlls/shell32/shfldr_unixfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/shell32/shfldr_unixfs.c b/dlls/shell32/shfldr_unixfs.c index 42799653600..b0a513a0f71 100644 --- a/dlls/shell32/shfldr_unixfs.c +++ b/dlls/shell32/shfldr_unixfs.c @@ -435,7 +435,7 @@ static BOOL UNIXFS_get_unix_path(LPCWSTR pszDosPath, char *pszCanonicalPath) 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. */