Commit ba7d599b authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard

net: WriteFile should output the number of bytes in the char array, not the…

net: WriteFile should output the number of bytes in the char array, not the length of the WCHAR array.
parent 9c789f29
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment