net: WriteFile should output the number of bytes in the char array, not the length of the WCHAR array.

This commit is contained in:
Hugh McMaster 2015-06-19 11:35:58 +10:00 committed by Alexandre Julliard
parent 9c789f2949
commit ba7d599b6f
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ static int output_write(const WCHAR* str, int len)
WideCharToMultiByte(GetConsoleOutputCP(), 0, str, len, strA, lenA,
NULL, NULL);
WriteFile(GetStdHandle(STD_OUTPUT_HANDLE), strA, len, &count, FALSE);
WriteFile(GetStdHandle(STD_OUTPUT_HANDLE), strA, lenA, &count, FALSE);
HeapFree(GetProcessHeap(), 0, strA);
}
return count;