mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 21:39:43 +00:00
net: WriteFile should output the number of bytes in the char array, not the length of the WCHAR array.
This commit is contained in:
parent
9c789f2949
commit
ba7d599b6f
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue