From 7ddc83dcdf1ee002a9dbef31b01cfc783c147256 Mon Sep 17 00:00:00 2001 From: Silvia Gross Date: Fri, 30 Mar 2001 00:18:55 +0000 Subject: [PATCH] drivemap-box-error-for-3-character-cellnames-20010329 "In the original version the path name in the box showing the network drives were wrong if a part of the name after afs had only 3 characters: afs\ipp\u became afs\u. Also the small hooks in front of the names disappeared immediately." --- src/WINNT/client_config/drivemap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WINNT/client_config/drivemap.cpp b/src/WINNT/client_config/drivemap.cpp index 0b08e8eae..0acaed0a1 100644 --- a/src/WINNT/client_config/drivemap.cpp +++ b/src/WINNT/client_config/drivemap.cpp @@ -689,7 +689,7 @@ void AdjustAfsPath (LPTSTR pszTarget, LPCTSTR pszSource, BOOL fWantAFS, BOOL fWa (pszSource[4] == TEXT('\\')) || (lstrlen(pszSource) == 4))) wsprintf (pszTarget, TEXT("/afs%s"), pszSource); - else if (!fWantAFS && (!lstrncmpi (&pszSource[1], TEXT("afs"), 3) || ((pszSource[4] == TEXT('/')) || + else if (!fWantAFS && (!lstrncmpi (&pszSource[1], TEXT("afs"), 3) && ((pszSource[4] == TEXT('/')) || (pszSource[4] == TEXT('\\')) || (lstrlen(pszSource) == 4)))) lstrcpy (pszTarget, &pszSource[4]); -- 2.39.5