From ee02771f9511800e5600315669fd1da5b07af2c3 Mon Sep 17 00:00:00 2001 From: Jason Hood Date: Mon, 15 Nov 2010 22:19:55 +1000 Subject: [PATCH] Fix for the move from WriteFile to WriteConsoleA. --- ANSI.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ANSI.c b/ANSI.c index 955cea9..84b86d9 100644 --- a/ANSI.c +++ b/ANSI.c @@ -1133,7 +1133,7 @@ WINAPI MyWriteConsoleA( HANDLE hCon, LPCVOID lpBuffer, DWORD len; len = GetModuleFileName( NULL, name, lenof(name) ); if (len >= 8 && _wcsicmp( name + len - 8, L"ruby.exe" ) == 0) - *lpNumberOfBytesWritten = nNumberOfBytesToWrite; + *lpNumberOfCharsWritten = nNumberOfCharsToWrite; } return rc; }