mirror of
https://git.openafs.org/openafs.git
synced 2025-01-20 07:51:00 +00:00
drivemap-fix-take2-20040305
* See I knew it wouldn't work. Revert to loop used in revision 1.14
This commit is contained in:
parent
52d6f09206
commit
01059dcb66
@ -774,18 +774,14 @@ 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);
|
||||
}
|
||||
else // (!IsWindowsNT())
|
||||
|
Loading…
Reference in New Issue
Block a user