wine/programs/cmd
Eric Pouech f2ca35bd80 cmd: Use OEM code page when reading a file.
Calling GetConsoleCP() when ReadConsoleW() fails (potentially indicating
that cmd.exe's instance isn't attached to a console) makes no sense.

In details, since GetConsoleCP() returns 0 when not attached to a console
to indicate error, we're in fact using CP_ACP.

So fallback explicitely to OEM CP (which is the default for CUI programs).

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-11-25 18:09:57 +01:00
..
tests cmd/tests: Make sure for /f doesn't loop infinitely on NULs. 2022-11-10 09:48:30 +01:00
batch.c cmd: Use OEM code page when reading a file. 2022-11-25 18:09:57 +01:00
builtins.c cmd: Don't write outside of variable array. 2022-11-14 13:13:02 +01:00
cmd.rc cmd: Bail out when full path name exceeds MAX_PATH. 2022-01-25 20:50:49 +01:00
directory.c cmd: Use the wcsrev function instead of reimplementing it. 2022-11-04 19:23:55 +01:00
Makefile.in cmd: Enable compilation with long types. 2022-02-17 09:07:07 +01:00
wcmd.h cmd: Bail out when full path name exceeds MAX_PATH. 2022-01-25 20:50:49 +01:00
wcmd.ico
wcmd.svg
wcmdmain.c cmd: Enable compilation with long types. 2022-02-17 09:07:07 +01:00