diff --git a/src/WINNT/client_config/drivemap.cpp b/src/WINNT/client_config/drivemap.cpp index dd5e8f30b6..5fa529a22b 100644 --- a/src/WINNT/client_config/drivemap.cpp +++ b/src/WINNT/client_config/drivemap.cpp @@ -774,19 +774,15 @@ BOOL GetDriveSubmount (TCHAR chDrive, LPTSTR pszSubmountNow) if (*pszSubmount==0) return FALSE; } - ++pszSubmount; - if(!*pszSubmount || _tcsncicmp(pszSubmount, szNetBiosName, _tcslen(szNetBiosName))) - return FALSE; -#ifdef COMMENT // note that szNetBiosName has a '\\' tagged in the end earlier for (++pszSubmount; *pszSubmount && (*pszSubmount != TEXT('\\')); ++pszSubmount) - if (!lstrncmpi (pszSubmount, szNetBiosName, lstrlen(szNetBiosName))) + if (!_tcsncicmp(pszSubmount, szNetBiosName, _tcslen(szNetBiosName))) break; if ((!*pszSubmount) || (*pszSubmount == TEXT('\\'))) return FALSE; -#endif - pszSubmount += _tcslen(szNetBiosName); + + pszSubmount += _tcslen(szNetBiosName); } else // (!IsWindowsNT()) {