Module: wine Branch: master Commit: 1adb4b52ffb7f51928a778e7d5b33fda9c7c69f8 URL: https://source.winehq.org/git/wine.git/?a=commit;h=1adb4b52ffb7f51928a778e7d...
Author: Eric Pouech eric.pouech@gmail.com Date: Thu Apr 28 11:22:40 2022 +0200
xcopy: Use OEM code page for output.
Signed-off-by: Eric Pouech eric.pouech@gmail.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
programs/xcopy/xcopy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/programs/xcopy/xcopy.c b/programs/xcopy/xcopy.c index 0f46a6c42ab..1d003007c0b 100644 --- a/programs/xcopy/xcopy.c +++ b/programs/xcopy/xcopy.c @@ -150,7 +150,7 @@ static int WINAPIV XCOPY_wprintf(const WCHAR *format, ...) { }
/* Convert to OEM, then output */ - convertedChars = WideCharToMultiByte(GetConsoleOutputCP(), 0, output_bufW, + convertedChars = WideCharToMultiByte(GetOEMCP(), 0, output_bufW, len, output_bufA, MAX_WRITECONSOLE_SIZE, "?", &usedDefaultChar); WriteFile(GetStdHandle(STD_OUTPUT_HANDLE), output_bufA, convertedChars,