Changeset 5016 for trunk/src/kernel32/oslibdos.cpp
- Timestamp:
- Jan 23, 2001, 12:59:45 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/oslibdos.cpp
r4862 r5016 1 /* $Id: oslibdos.cpp,v 1.5 5 2000-12-31 12:28:54sandervl Exp $ */1 /* $Id: oslibdos.cpp,v 1.56 2001-01-23 11:59:45 sandervl Exp $ */ 2 2 /* 3 3 * Wrappers for OS/2 Dos* API … … 1687 1687 } 1688 1688 1689 // TODO: not finished nor correct!!!! 1689 1690 VOID long2ShortName(CHAR* longName, CHAR* shortName) 1690 1691 { … … 1729 1730 x++) 1730 1731 { 1731 switch (*source ++)1732 switch (*source) 1732 1733 { 1733 1734 case '.': // a period will cause the loop to abort! … … 1741 1742 flag83 = FALSE; 1742 1743 break; 1744 default: 1745 source++; 1746 break; 1743 1747 } 1744 1748 } … … 1747 1751 if (flag83 == TRUE) 1748 1752 if (*source != '.') 1749 flag83 = FALSE; 1753 flag83 = FALSE; 1754 else source++; 1750 1755 1751 1756 // verify extension … … 1764 1769 break; 1765 1770 } 1771 source++; 1766 1772 } 1767 1773 … … 1777 1783 // an app opening a specific file with an 8:3 "alias", 1778 1784 // would surely fail. 1779 strcpy(longName, 1780 shortName); 1785 strcpy(shortName, longName); 1781 1786 1782 1787 return; // Done … … 1840 1845 CHAR* name; 1841 1846 1847 pFind->dwReserved0 = pFind->dwReserved1 = 0; 1842 1848 pFind->dwFileAttributes = pm2WinFileAttributes(pResult->attrFile); 1843 1849 … … 1863 1869 { 1864 1870 pFind->dwFileAttributes = pm2WinFileAttributes(pResult->attrFile); 1871 pFind->dwReserved0 = pFind->dwReserved1 = 0; 1865 1872 1866 1873 pmDateTimeToFileTime(&pResult->fdateCreation,&pResult->ftimeCreation,&pFind->ftCreationTime);
Note:
See TracChangeset
for help on using the changeset viewer.