mirror of
https://git.openafs.org/openafs.git
synced 2025-01-20 16:00:12 +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,19 +774,15 @@ BOOL GetDriveSubmount (TCHAR chDrive, LPTSTR pszSubmountNow)
|
|||||||
if (*pszSubmount==0)
|
if (*pszSubmount==0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
++pszSubmount;
|
|
||||||
if(!*pszSubmount || _tcsncicmp(pszSubmount, szNetBiosName, _tcslen(szNetBiosName)))
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
#ifdef COMMENT
|
|
||||||
// note that szNetBiosName has a '\\' tagged in the end earlier
|
// note that szNetBiosName has a '\\' tagged in the end earlier
|
||||||
for (++pszSubmount; *pszSubmount && (*pszSubmount != TEXT('\\')); ++pszSubmount)
|
for (++pszSubmount; *pszSubmount && (*pszSubmount != TEXT('\\')); ++pszSubmount)
|
||||||
if (!lstrncmpi (pszSubmount, szNetBiosName, lstrlen(szNetBiosName)))
|
if (!_tcsncicmp(pszSubmount, szNetBiosName, _tcslen(szNetBiosName)))
|
||||||
break;
|
break;
|
||||||
if ((!*pszSubmount) || (*pszSubmount == TEXT('\\')))
|
if ((!*pszSubmount) || (*pszSubmount == TEXT('\\')))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
#endif
|
|
||||||
pszSubmount += _tcslen(szNetBiosName);
|
pszSubmount += _tcslen(szNetBiosName);
|
||||||
}
|
}
|
||||||
else // (!IsWindowsNT())
|
else // (!IsWindowsNT())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user