Changeset 687 for trunk


Ignore:
Timestamp:
2009/03/11 15:13:14 (3 years ago)
Author:
egtra
Message:

ReadConsoleのバッファサイズにSizeOf(TCHAR)をかけ算するよう修正(WriteConsoleはかけ算不要の模様)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/ablib/src/Classes/System/Console.ab

    r686 r687  
    696696        Dim p = StrPtr(b) 
    697697        Dim read As DWord 
    698         If ReadConsole(h, VarPtr(p[currentBufLength]), 256, read, 0) = 0 Then 
     698        If ReadConsole(h, VarPtr(p[currentBufLength]), 256 * SizeOf (TCHAR), read, 0) = 0 Then 
    699699            IO.Detail.ThrowWinLastErrorIOException() 
    700700        End If 
Note: See TracChangeset for help on using the changeset viewer.