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)