Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f2c4b9fe
Commit
f2c4b9fe
authored
Apr 28, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
May 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
icinfo: Use OEM code page for output.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
aebe8453
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
icinfo.c
programs/icinfo/icinfo.c
+2
-6
No files found.
programs/icinfo/icinfo.c
View file @
f2c4b9fe
...
...
@@ -35,17 +35,13 @@ static int WINAPIV mywprintf(const WCHAR *format, ...)
vswprintf
(
output_bufW
,
ARRAY_SIZE
(
output_bufW
),
format
,
parms
);
va_end
(
parms
);
/* Try to write as unicode whenever we think it's a console */
if
(((
DWORD_PTR
)
hout
&
3
)
==
3
)
{
res
=
WriteConsoleW
(
hout
,
output_bufW
,
lstrlenW
(
output_bufW
),
&
nOut
,
NULL
);
}
else
if
(
!
res
)
{
DWORD
convertedChars
;
/* Convert to OEM, then output */
convertedChars
=
WideCharToMultiByte
(
Get
ConsoleOutput
CP
(),
0
,
output_bufW
,
-
1
,
convertedChars
=
WideCharToMultiByte
(
Get
OEM
CP
(),
0
,
output_bufW
,
-
1
,
output_bufA
,
sizeof
(
output_bufA
),
NULL
,
NULL
);
res
=
WriteFile
(
hout
,
output_bufA
,
convertedChars
,
&
nOut
,
FALSE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment