Changeset 5016 for trunk/src/kernel32
- Timestamp:
- Jan 23, 2001, 12:59:45 PM (25 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/HandleManager.cpp
r5011 r5016 1 /* $Id: HandleManager.cpp,v 1.6 0 2001-01-22 18:26:49sandervl Exp $ */1 /* $Id: HandleManager.cpp,v 1.61 2001-01-23 11:59:44 sandervl Exp $ */ 2 2 3 3 /* … … 694 694 return(TabWin32Handles[hHandle16].hmHandleData.hHMHandle); 695 695 } 696 697 698 696 699 697 /***************************************************************************** … … 4464 4462 if (-1 == iIndexNewWrite) /* oops, no free handles ! */ 4465 4463 { 4466 //free handle 4467 TabWin32Handles[iIndexNewRead].hmHandleData.hHMHandle = INVALID_HANDLE_VALUE; 4464 HMHandleFree(iIndexNewRead); 4468 4465 SetLastError(ERROR_NOT_ENOUGH_MEMORY); /* use this as error message */ 4469 4466 return 0; … … 4511 4508 if (rc == 0) /* oops, creation failed within the device handler */ 4512 4509 { 4513 TabWin32Handles[iIndexNewRead].hmHandleData.hHMHandle = INVALID_HANDLE_VALUE;4514 TabWin32Handles[iIndexNewWrite].hmHandleData.hHMHandle = INVALID_HANDLE_VALUE;4515 return FALSE; /* signal error */4510 HMHandleFree(iIndexNewRead); 4511 HMHandleFree(iIndexNewWrite); 4512 return FALSE; /* signal error */ 4516 4513 } 4517 4514 -
trunk/src/kernel32/conbuffervio.cpp
r4523 r5016 1 /* $Id: conbuffervio.cpp,v 1. 2 2000-10-23 13:42:40sandervl Exp $ */1 /* $Id: conbuffervio.cpp,v 1.3 2001-01-23 11:59:45 sandervl Exp $ */ 2 2 3 3 /* … … 220 220 dprintf(("LF")); 221 221 pConsoleBuffer->coordCursorPosition.Y++; 222 pConsoleBuffer->coordCursorPosition.X = 0; 222 223 if(pConsoleBuffer->coordCursorPosition.Y >= pConsoleBuffer->coordWindowSize.Y) { 223 224 dprintf(("scrollup")); -
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); -
trunk/src/kernel32/wprocess.cpp
r4946 r5016 1 /* $Id: wprocess.cpp,v 1.11 1 2001-01-14 17:16:55 sandervl Exp $ */1 /* $Id: wprocess.cpp,v 1.112 2001-01-23 11:59:45 sandervl Exp $ */ 2 2 3 3 /* … … 398 398 //Flush and delete all open memory mapped files 399 399 Win32MemMap::deleteAll(); 400 401 //SvL: We must make sure no threads are still suspended (with SuspendThread) 402 // OS/2 seems to be unable to terminate the process otherwise (exitlist hang) 403 TEB *teb = threadList; 404 threadListMutex.enter(); 405 while(teb) { 406 ResumeThread(teb->o.odin.hThread); 407 teb = teb->o.odin.next; 408 } 409 threadListMutex.leave(); 400 410 401 411 //Restore original OS/2 TIB selector … … 1588 1598 DWORD fileAttr; 1589 1599 1590 //TODO: doesn't work for directories with spaces!1591 1600 while(*exename != 0) { 1592 1601 while(*exename != 0 && *exename != ' ')
Note:
See TracChangeset
for help on using the changeset viewer.