Changeset 297 for trunk/src/kernel32


Ignore:
Timestamp:
Jul 12, 1999, 7:45:51 PM (26 years ago)
Author:
phaller
Message:

Fix: Console buffer fixes.

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 $ */
    22
    33/*
     
    18091809    case 0:
    18101810      for (iY = 0;
    1811            iY <= srctDest.Bottom - srctDest.Top;
     1811           iY < srctDest.Bottom - srctDest.Top;
    18121812           iY++)
    18131813      {
     
    18341834    case 1:
    18351835      for (iY = 0;
    1836            iY <= srctDest.Bottom - srctDest.Top;
     1836           iY < srctDest.Bottom - srctDest.Top;
    18371837           iY++)
    18381838      {
     
    18581858     ***************/
    18591859    case 2:
    1860       for (iY = srctDest.Bottom - srctDest.Top;
     1860      for (iY = srctDest.Bottom - srctDest.Top - 1;
    18611861           iY >= 0;
    18621862           iY--)
     
    18831883     ****************/
    18841884    case 3:
    1885       for (iY = srctDest.Bottom - srctDest.Top;
     1885      for (iY = srctDest.Bottom - srctDest.Top - 1;
    18861886           iY >= 0;
    18871887           iY--)
  • trunk/src/kernel32/console.cpp

    r296 r297  
    1 /* $Id: console.cpp,v 1.9 1999-07-12 17:20:03 phaller Exp $ */
     1/* $Id: console.cpp,v 1.10 1999-07-12 17:45:51 phaller Exp $ */
    22
    33/*
     
    197197void static iConsoleInputQueueLock()
    198198{
    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));
    201206}
    202207
     
    216221void static iConsoleInputQueueUnlock()
    217222{
    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));
    219229}
    220230
     
    596606                                /* Set new title: Win32 Console - Terminated */
    597607  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
    598613
    599614                                          /* terminate console immediately ? */
     
    718733  DosCloseEventSem(ConsoleInput.hevInputQueue);     /* close other semaphore */
    719734  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;
    722740
    723741  /* @@@PH we've got to exit the process here ! */
     
    13351353              0,
    13361354              ConsoleGlobals.hvpsConsole);
     1355
    13371356    ConsoleGlobals.fUpdateRequired = FALSE;          /* no more required ... */
    13381357  }
Note: See TracChangeset for help on using the changeset viewer.