Changeset 297 for trunk/src/kernel32
- Timestamp:
- Jul 12, 1999, 7:45:51 PM (26 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/conbuffer.cpp
r149 r297 1 /* $Id: conbuffer.cpp,v 1. 3 1999-06-21 18:53:50 phaller Exp $ */1 /* $Id: conbuffer.cpp,v 1.4 1999-07-12 17:45:50 phaller Exp $ */ 2 2 3 3 /* … … 1809 1809 case 0: 1810 1810 for (iY = 0; 1811 iY < =srctDest.Bottom - srctDest.Top;1811 iY < srctDest.Bottom - srctDest.Top; 1812 1812 iY++) 1813 1813 { … … 1834 1834 case 1: 1835 1835 for (iY = 0; 1836 iY < =srctDest.Bottom - srctDest.Top;1836 iY < srctDest.Bottom - srctDest.Top; 1837 1837 iY++) 1838 1838 { … … 1858 1858 ***************/ 1859 1859 case 2: 1860 for (iY = srctDest.Bottom - srctDest.Top ;1860 for (iY = srctDest.Bottom - srctDest.Top - 1; 1861 1861 iY >= 0; 1862 1862 iY--) … … 1883 1883 ****************/ 1884 1884 case 3: 1885 for (iY = srctDest.Bottom - srctDest.Top ;1885 for (iY = srctDest.Bottom - srctDest.Top - 1; 1886 1886 iY >= 0; 1887 1887 iY--) -
trunk/src/kernel32/console.cpp
r296 r297 1 /* $Id: console.cpp,v 1. 9 1999-07-12 17:20:03phaller Exp $ */1 /* $Id: console.cpp,v 1.10 1999-07-12 17:45:51 phaller Exp $ */ 2 2 3 3 /* … … 197 197 void static iConsoleInputQueueLock() 198 198 { 199 DosRequestMutexSem(ConsoleInput.hmtxInputQueue, 200 SEM_INDEFINITE_WAIT); 199 APIRET rc; 200 201 rc = DosRequestMutexSem(ConsoleInput.hmtxInputQueue, 202 SEM_INDEFINITE_WAIT); 203 if (rc != NO_ERROR) 204 dprintf(("KERNEL32: Console:iConsoleInputQueueLock error %08xh\n", 205 rc)); 201 206 } 202 207 … … 216 221 void static iConsoleInputQueueUnlock() 217 222 { 218 DosReleaseMutexSem(ConsoleInput.hmtxInputQueue); 223 APIRET rc; 224 225 rc = DosReleaseMutexSem(ConsoleInput.hmtxInputQueue); 226 if (rc != NO_ERROR) 227 dprintf(("KERNEL32: Console:iConsoleInputQueueUnlock error %08xh\n", 228 rc)); 219 229 } 220 230 … … 596 606 /* Set new title: Win32 Console - Terminated */ 597 607 fResult = SetConsoleTitleA(szBuffer); 608 609 DosCloseEventSem(ConsoleGlobals.hevConsole); /* close other semaphore */ 610 DosCloseEventSem(ConsoleInput.hevInputQueue); /* close other semaphore */ 611 DosCloseMutexSem(ConsoleInput.hmtxInputQueue); /* close semaphore */ 612 598 613 599 614 /* terminate console immediately ? */ … … 718 733 DosCloseEventSem(ConsoleInput.hevInputQueue); /* close other semaphore */ 719 734 DosCloseEventSem(ConsoleGlobals.hevConsole); 720 ConsoleGlobals.hevConsole = NULLHANDLE; /* for ConsoleIsActive() */ 721 ConsoleInput.hevInputQueue = NULLHANDLE; 735 DosCloseMutexSem(ConsoleInput.hmtxInputQueue); /* close semaphore */ 736 737 ConsoleGlobals.hevConsole = NULLHANDLE; /* for ConsoleIsActive() */ 738 ConsoleInput.hevInputQueue = NULLHANDLE; 739 ConsoleInput.hmtxInputQueue = NULLHANDLE; 722 740 723 741 /* @@@PH we've got to exit the process here ! */ … … 1335 1353 0, 1336 1354 ConsoleGlobals.hvpsConsole); 1355 1337 1356 ConsoleGlobals.fUpdateRequired = FALSE; /* no more required ... */ 1338 1357 }
Note:
See TracChangeset
for help on using the changeset viewer.