Ignore:
Timestamp:
Jan 31, 2013, 3:56:49 AM (13 years ago)
Author:
dmik
Message:

kernel32: Fix endless loop in new console I/O mode.

This could happen when printing chars with codes greater than 127.
Quite an old bug/typo that was exposed by enabling the
new console I/O mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/conbuffervio.cpp

    r22059 r22061  
    114114          USHORT Row;
    115115          USHORT Column;
    116           int    numchar;
     116          ULONG  numchar;
    117117
    118118#ifdef DEBUG_LOCAL2
     
    260260////        dprintf(("Current cursor position (%d,%d)", pConsoleBuffer->coordCursorPosition.X, pConsoleBuffer->coordCursorPosition.Y));
    261261        numchar = ulCounter;
    262         while(pszBuffer[numchar] >= 32 && numchar < nNumberOfBytesToWrite) {
     262        while((ucChar = pszBuffer[numchar]) >= 32 && numchar < nNumberOfBytesToWrite) {
    263263            numchar++;
    264264        }
Note: See TracChangeset for help on using the changeset viewer.