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
85f1a79b
Commit
85f1a79b
authored
Jun 26, 2018
by
Marcus Meissner
Committed by
Alexandre Julliard
Jun 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
icinfo: vsnprintfw takes characters as buffer size not bytes.
Signed-off-by:
Marcus Meissner
<
meissner@suse.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
75236a63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
icinfo.c
programs/icinfo/icinfo.c
+2
-2
No files found.
programs/icinfo/icinfo.c
View file @
85f1a79b
...
...
@@ -26,14 +26,14 @@
static
int
mywprintf
(
const
WCHAR
*
format
,
...)
{
static
char
output_bufA
[
65536
];
static
WCHAR
output_bufW
[
sizeof
(
output_bufA
)
/
sizeof
(
WCHAR
)
];
static
WCHAR
output_bufW
[
sizeof
(
output_bufA
)];
va_list
parms
;
DWORD
nOut
;
BOOL
res
=
FALSE
;
HANDLE
hout
=
GetStdHandle
(
STD_OUTPUT_HANDLE
);
va_start
(
parms
,
format
);
vsnprintfW
(
output_bufW
,
sizeof
(
output_bufW
),
format
,
parms
);
vsnprintfW
(
output_bufW
,
sizeof
(
output_bufW
)
/
sizeof
(
output_bufW
[
0
])
,
format
,
parms
);
va_end
(
parms
);
/* Try to write as unicode whenever we think it's a console */
...
...
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