drivemap-fix-take2-20040305

* See I knew it wouldn't work.  Revert to loop used in revision 1.14
This commit is contained in:
Jeffrey Altman 2004-03-05 23:27:07 +00:00 committed by Jeffrey Altman
parent 52d6f09206
commit 01059dcb66

View File

@ -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())
{ {