Changeset 75457 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Nov 14, 2018 6:01:19 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceAutoMount.cpp
r75451 r75457 1574 1574 #if defined(RT_OS_OS2) || defined(RT_OS_WINDOWS) 1575 1575 /* 1576 * Drive letter based: 1576 * Drive letter based. We only care about the first two characters 1577 * and ignore the rest (see further down). 1577 1578 */ 1578 1579 char chNextLetter = 'Z'; 1579 if (RT_C_IS_ UPPER(pszMntPt[0]) && pszMntPt[1] == ':')1580 if (RT_C_IS_ALPHA(pszMntPt[0]) && pszMntPt[1] == ':') 1580 1581 szActualMountPoint[0] = RT_C_TO_UPPER(pszMntPt[0]); 1581 1582 else if (!fAutoMntPt) … … 1603 1604 * Path based #1: Host specified mount point. 1604 1605 */ 1606 1607 /* Skip DOS drive letter if there is a UNIX mount point path following it: */ 1608 if ( pszMntPt[0] != '/' 1609 && pszMntPt[0] != '\0' 1610 && pszMntPt[1] == ':' 1611 && pszMntPt[2] == '/') 1612 pszMntPt += 2; 1613 1614 /* Try specified mount point if it starts with a UNIX slash: */ 1605 1615 int rc = VERR_ACCESS_DENIED; 1606 1616 if (*pszMntPt == '/')
Note:
See TracChangeset
for help on using the changeset viewer.