Index: cmd/console.c =================================================================== --- cmd/console.c (revision 49181) +++ cmd/console.c (working copy) @@ -131,7 +131,7 @@ error_out_of_memory(); return; } - len = MultiByteToWideChar(OutputCodePage, 0, str, len, buffer, len, NULL, NULL); + len = MultiByteToWideChar(OutputCodePage, 0, str, len, buffer, len); str = (PVOID)buffer; #endif WriteFile(hOutput, str, len * sizeof(WCHAR), &dwWritten, NULL); Index: cmd/precomp.h =================================================================== --- cmd/precomp.h (revision 49181) +++ cmd/precomp.h (working copy) @@ -23,6 +23,7 @@ #include #include #include +#include #define NTOS_MODE_USER #include Index: cmd/cmd.c =================================================================== --- cmd/cmd.c (revision 49181) +++ cmd/cmd.c (working copy) @@ -180,7 +180,7 @@ * insert commas into a number */ INT -ConvertULargeInteger(ULONGLONG num, LPTSTR des, INT len, BOOL bPutSeperator) +ConvertULargeInteger(ULONGLONG num, LPTSTR des, UINT len, BOOL bPutSeperator) { TCHAR temp[39]; /* maximum length with nNumberGroups == 1 */ UINT n, iTarget; Index: cmd/cmd.h =================================================================== --- cmd/cmd.h (revision 49181) +++ cmd/cmd.h (working copy) @@ -99,7 +99,7 @@ /* Prototypes for CMD.C */ -INT ConvertULargeInteger(ULONGLONG num, LPTSTR des, INT len, BOOL bPutSeperator); +INT ConvertULargeInteger(ULONGLONG num, LPTSTR des, UINT len, BOOL bPutSeperator); HANDLE RunFile(DWORD, LPTSTR, LPTSTR, LPTSTR, INT); INT ParseCommandLine(LPTSTR); struct _PARSED_COMMAND;