From 4c391c1454ea5fcac0ac5d793651f3c20383ef6a Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 15 Apr 2020 22:04:38 +0200 Subject: [PATCH] winepath: Avoid CR characters in output. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48937 Signed-off-by: Alexandre Julliard --- programs/winepath/winepath.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/programs/winepath/winepath.c b/programs/winepath/winepath.c index 81944829dd9..17cfdc1d2eb 100644 --- a/programs/winepath/winepath.c +++ b/programs/winepath/winepath.c @@ -24,6 +24,8 @@ #include #include #include +#include +#include #include "wine/debug.h" @@ -140,6 +142,8 @@ int __cdecl wmain(int argc, WCHAR *argv[]) int i; int separator; + setmode( fileno(stdout), O_BINARY ); /* avoid crlf */ + outputformats = parse_options(argv); if (outputformats & PRINT0)