Changeset 7927 for trunk/src/kernel32/oslibdos.cpp
- Timestamp:
- Feb 15, 2002, 8:14:52 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/oslibdos.cpp
r7865 r7927 1 /* $Id: oslibdos.cpp,v 1.9 5 2002-02-11 13:46:36sandervl Exp $ */1 /* $Id: oslibdos.cpp,v 1.96 2002-02-15 19:14:52 sandervl Exp $ */ 2 2 /* 3 3 * Wrappers for OS/2 Dos* API … … 1728 1728 1729 1729 if(rc == NO_ERROR) { 1730 dprintf(("Opening of existing named pipe succeeded")); 1731 return hPipe; 1730 #if 0 1731 //TODO: 1732 if(dwOpenMode & FILE_FLAG_FIRST_PIPE_INSTANCE_W) { 1733 DosClose(hPipe); 1734 SetLastError(ERROR_ALREADY_EXISTS_W); 1735 return -1; 1736 } 1737 else { 1738 #endif 1739 dprintf(("Opening of existing named pipe succeeded")); 1740 SetLastError(ERROR_SUCCESS_W); 1741 return hPipe; 1742 // } 1732 1743 } 1733 1744 … … 1746 1757 return -1; // INVALID_HANDLE_VALUE 1747 1758 } 1759 SetLastError(ERROR_SUCCESS_W); 1748 1760 return hPipe; 1749 1761 } … … 1769 1781 return FALSE; 1770 1782 } 1783 SetLastError(ERROR_SUCCESS_W); 1771 1784 return TRUE; 1772 1785 } … … 1859 1872 if(rc == NO_ERROR) { 1860 1873 dprintf(("Opening of existing named pipe succeeded")); 1874 SetLastError(ERROR_SUCCESS_W); 1861 1875 return hPipe; 1862 1876 } … … 1876 1890 dprintf(("DosConnectNPipe rc=%d",rc)); 1877 1891 1878 if (!rc) return (TRUE); 1892 if(rc == NO_ERROR) { 1893 SetLastError(ERROR_SUCCESS_W); 1894 return (TRUE); 1895 } 1879 1896 SetLastError(error2WinError(rc,ERROR_PIPE_NOT_CONNECTED_W)); 1880 1881 1897 return (FALSE); 1882 1898 } … … 1914 1930 1915 1931 1916 if (!rc) return (TRUE); 1932 if(rc == NO_ERROR) { 1933 SetLastError(ERROR_SUCCESS_W); 1934 return (TRUE); 1935 } 1917 1936 SetLastError(error2WinError(rc,ERROR_PIPE_NOT_CONNECTED_W)); 1918 1919 1937 return (FALSE); 1920 1938 } … … 1940 1958 1941 1959 dprintf(("DosTransactNPipe returned rc=%d");) 1942 if (!rc) return (TRUE); 1960 if(rc == NO_ERROR) { 1961 SetLastError(ERROR_SUCCESS_W); 1962 return (TRUE); 1963 } 1943 1964 SetLastError(error2WinError(rc,ERROR_PIPE_NOT_CONNECTED_W)); 1944 1945 1965 return (FALSE); 1946 1966 } … … 1967 1987 *lpcbAvail = availData.cbpipe; 1968 1988 *lpcbMessage = availData.cbmessage; 1989 SetLastError(ERROR_SUCCESS_W); 1969 1990 return (TRUE); 1970 1991 } 1971 1992 SetLastError(error2WinError(rc,ERROR_PIPE_NOT_CONNECTED_W)); 1972 1973 1993 return (FALSE); 1974 1994 } … … 1983 2003 dprintf(("DosDisConnectNPipe returned rc=%d",rc)); 1984 2004 1985 if (!rc) return TRUE; 2005 if(rc == NO_ERROR) { 2006 SetLastError(ERROR_SUCCESS_W); 2007 return (TRUE); 2008 } 1986 2009 SetLastError(error2WinError(rc,ERROR_PIPE_NOT_CONNECTED_W)); 1987 1988 2010 return (FALSE); 1989 2011 } … … 2010 2032 dprintf(("DosWaitNPipe returned rc=%d",rc)); 2011 2033 2012 if (!rc) return TRUE; 2034 if(rc == NO_ERROR) { 2035 SetLastError(ERROR_SUCCESS_W); 2036 return (TRUE); 2037 } 2013 2038 SetLastError(error2WinError(rc,ERROR_PIPE_NOT_CONNECTED_W)); 2014 2039
Note:
See TracChangeset
for help on using the changeset viewer.