Changeset 4474 for trunk/src/kernel32/oslibdos.cpp
- Timestamp:
- Oct 10, 2000, 7:14:09 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/oslibdos.cpp
r4473 r4474 1 /* $Id: oslibdos.cpp,v 1.4 8 2000-10-09 22:51:18sandervl Exp $ */1 /* $Id: oslibdos.cpp,v 1.49 2000-10-10 17:14:04 sandervl Exp $ */ 2 2 /* 3 3 * Wrappers for OS/2 Dos* API … … 1744 1744 DosFindClose(hDir); 1745 1745 SetLastError(error2WinError(rc)); 1746 return INVALID_HANDLE_VALUE_W;1746 return INVALID_HANDLE_VALUE_W; 1747 1747 } 1748 1748 translateFindResults(&result,lpFindFileData); 1749 SetLastError(ERROR_SUCCESS_W); 1749 1750 return hDir; 1750 1751 } … … 1783 1784 *count = searchCount; 1784 1785 1786 SetLastError(ERROR_SUCCESS_W); 1785 1787 return hDir; 1786 1788 } … … 1801 1803 1802 1804 translateFindResults(&result,lpFindFileData); 1803 1805 SetLastError(ERROR_SUCCESS_W); 1804 1806 return TRUE; 1805 1807 } … … 1831 1833 *count = searchCount; 1832 1834 1835 SetLastError(ERROR_SUCCESS_W); 1833 1836 return TRUE; 1834 1837 } … … 1841 1844 { 1842 1845 SetLastError(error2WinError(rc)); 1843 1844 1846 return FALSE; 1845 1847 } 1846 1848 1849 SetLastError(ERROR_SUCCESS_W); 1847 1850 return TRUE; 1848 1851 } … … 1859 1862 1860 1863 if(lpFileSystemNameBuffer == NULL) { 1861 DebugInt3();1862 return ERROR_INVALID_PARAMETER_W;1864 DebugInt3(); 1865 return ERROR_INVALID_PARAMETER_W; 1863 1866 } 1864 1867 drv[0] = (char)('A' + drive - 1); … … 1870 1873 switch(rc) { 1871 1874 case ERROR_INVALID_DRIVE: 1872 return ERROR_INVALID_DRIVE_W;1875 return ERROR_INVALID_DRIVE_W; 1873 1876 case ERROR_NO_VOLUME_LABEL: 1874 return ERROR_NO_VOLUME_LABEL_W;1877 return ERROR_NO_VOLUME_LABEL_W; 1875 1878 case NO_ERROR: 1876 break;1879 break; 1877 1880 default: 1878 return ERROR_NOT_ENOUGH_MEMORY; //whatever1881 return ERROR_NOT_ENOUGH_MEMORY; //whatever 1879 1882 } 1880 1883 … … 1889 1892 /* 1890 1893 if(strlen(fsname) < nFileSystemNameSize) { 1891 strcpy(lpFileSystemNameBuffer, fsname);1894 strcpy(lpFileSystemNameBuffer, fsname); 1892 1895 } 1893 1896 else return ERROR_BUFFER_OVERFLOW_W; … … 2000 2003 return -1; // INVALID_HANDLE_VALUE 2001 2004 } 2005 SetLastError(ERROR_SUCCESS_W); 2002 2006 return NO_ERROR; 2003 2007 } … … 2075 2079 } 2076 2080 else len += 3; // + 3 since DosQueryCurDir doesn't include drive 2081 2082 SetLastError(ERROR_SUCCESS_W); 2077 2083 return len; 2078 2084 }
Note:
See TracChangeset
for help on using the changeset viewer.