From 9736e48f66ed5a470a34f24d836cd92863bd47f3 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Fri, 6 May 2005 17:30:45 +0000 Subject: [PATCH] Thx w3seek that pointout a bug in ConInString it should have been in fristplase GetConsoleCP() instead for GetConsoleOutputCP svn path=/trunk/; revision=15053 --- reactos/subsys/system/cmd/console.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reactos/subsys/system/cmd/console.c b/reactos/subsys/system/cmd/console.c index f088ce7c78e..a0af7e8990e 100644 --- a/reactos/subsys/system/cmd/console.c +++ b/reactos/subsys/system/cmd/console.c @@ -17,7 +17,6 @@ #define OUTPUT_BUFFER_SIZE 4096 - VOID ConInDisable (VOID) { HANDLE hInput = GetStdHandle (STD_INPUT_HANDLE); @@ -105,7 +104,7 @@ VOID ConInString (LPTSTR lpInput, DWORD dwLength) ReadFile (hFile, (PVOID)pBuf, dwLength, &dwRead, NULL); #ifdef _UNICODE - MultiByteToWideChar( GetConsoleOutputCP(), 0, pBuf, dwLength + 1, lpInput, dwLength + 1); + MultiByteToWideChar( GetConsoleCP(), 0, pBuf, dwLength + 1, lpInput, dwLength + 1); #endif p = lpInput; for (i = 0; i < dwRead; i++, p++)