wine/programs
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
..
arp
aspnet_regiis
attrib
cabarc
cacls
certutil certutil: Add stub program. 2022-11-07 21:16:10 +01:00
chcp.com
clock
cmd cmd: Use OEM code page when reading a file. 2022-11-25 18:09:57 +01:00
conhost conhost/tests: Fix some conditions on tty test termination. 2022-11-01 20:46:23 +01:00
control
cscript
dism
dllhost
dplaysvr
dpnsvr
dpvsetup
dxdiag
eject
expand
explorer explorer: Put the calling convention inside the function pointer parentheses. 2022-11-22 18:27:30 +01:00
extrac32
fc
find
findstr
fsutil
hh
hostname
icacls
icinfo
iexplore
ipconfig
lodctr
mofcomp
mshta
msidb msidb: Use CRT allocation functions. 2022-09-09 23:21:40 +02:00
msiexec
msinfo32
net
netsh
netstat
ngen ngen: Add version resource. 2022-10-11 18:40:37 +02:00
notepad notepad: Show goto dialog box. 2022-09-23 15:16:48 +02:00
oleview
ping ping: Use CRT allocation functions. 2022-09-09 23:21:40 +02:00
plugplay
powershell
presentationfontcache
progman
reg
regasm
regedit regedit: Add a direct import for shcore. 2022-09-30 18:34:22 +02:00
regini
regsvcs
regsvr32
robocopy
rpcss rpcss: Use I_Rpc(Free|Allocate) in MIDL_user_(allocate|free). 2022-11-23 17:59:47 +01:00
rundll.exe16
rundll32
sc
schtasks
sdbinst
secedit
servicemodelreg
services
setx setx: Add stub program. 2022-11-07 21:16:10 +01:00
shutdown
spoolsv
start
subst
svchost
systeminfo
taskkill
tasklist
taskmgr
termsv
uninstaller
unlodctr
view
wevtutil
where
whoami
wineboot
winebrowser
winecfg uuid: Add propkey.h. 2022-11-08 20:07:51 +01:00
wineconsole
winedbg winedbg: Don't use invalid address mode in exception prolog. 2022-11-14 13:13:02 +01:00
winedevice
winefile winefile: Use 10 DLUs for check box height. 2022-07-15 11:32:54 +02:00
winemenubuilder
winemine
winemsibuilder winemsibuilder: Use CRT allocation functions. 2022-07-05 12:34:03 +02:00
winepath winepath: Free wine_get_(dos|unix)_file_name memory with HeapFree. 2022-11-25 18:09:57 +01:00
winetest winetest: Let the get_subtests() caller report errors. 2022-10-20 18:29:59 +02:00
winevdm
winhelp.exe16
winhlp32
winmgmt
winoldap.mod16
winver
wmic wmic: Support array of BSTRs in convert_to_bstr(). 2022-11-24 22:20:20 +01:00
wmplayer
wordpad wordpad: Use CRT allocation functions. 2022-07-05 12:34:03 +02:00
write
wscript wscript: Use CRT memory allocation functions. 2022-07-05 12:34:03 +02:00
wuauserv
wusa
xcopy