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
7ca08fee
Commit
7ca08fee
authored
Jun 17, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Avoid short printf formats with int variables.
parent
4272d92f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
typegen.c
tools/widl/typegen.c
+4
-4
No files found.
tools/widl/typegen.c
View file @
7ca08fee
...
...
@@ -1158,7 +1158,7 @@ static unsigned int write_new_procformatstring_type(FILE *file, int indent, cons
if
(
flags
>>
13
)
sprintf
(
buffer
+
strlen
(
buffer
),
" srv size=%u,"
,
(
flags
>>
13
)
*
8
);
strcpy
(
buffer
+
strlen
(
buffer
)
-
1
,
" */"
);
print_file
(
file
,
indent
,
"NdrFcShort(0x%hx),
\t
%s
\n
"
,
flags
,
buffer
);
print_file
(
file
,
indent
,
"NdrFcShort(0x%
hx), /* stack offset = %h
u */
\n
"
,
print_file
(
file
,
indent
,
"NdrFcShort(0x%
x), /* stack offset = %
u */
\n
"
,
*
stack_offset
,
*
stack_offset
);
if
(
flags
&
IsBasetype
)
{
...
...
@@ -1332,7 +1332,7 @@ static void write_proc_func_header( FILE *file, int indent, const type_t *iface,
print_file
(
file
,
indent
,
"0x%02x,
\n
"
,
oi_flags
);
print_file
(
file
,
indent
,
"NdrFcLong(0x%x),
\n
"
,
rpc_flags
);
print_file
(
file
,
indent
,
"NdrFcShort(0x%hx),
\t
/* method %hu */
\n
"
,
num_proc
,
num_proc
);
print_file
(
file
,
indent
,
"NdrFcShort(0x%
hx),
\t
/* stack size = %h
u */
\n
"
,
stack_size
,
stack_size
);
print_file
(
file
,
indent
,
"NdrFcShort(0x%
x),
\t
/* stack size = %
u */
\n
"
,
stack_size
,
stack_size
);
*
offset
+=
10
;
if
(
!
implicit_fc
)
...
...
@@ -1380,9 +1380,9 @@ static void write_proc_func_header( FILE *file, int indent, const type_t *iface,
if
(
is_attr
(
func
->
attrs
,
ATTR_NOTIFYFLAG
))
ext_flags
|=
0x10
;
/* HasNotify2 */
size
=
get_function_buffer_size
(
func
,
PASS_IN
);
print_file
(
file
,
indent
,
"NdrFcShort(0x%x),
\t
/* client buffer = %
h
u */
\n
"
,
size
,
size
);
print_file
(
file
,
indent
,
"NdrFcShort(0x%x),
\t
/* client buffer = %u */
\n
"
,
size
,
size
);
size
=
get_function_buffer_size
(
func
,
PASS_OUT
);
print_file
(
file
,
indent
,
"NdrFcShort(0x%x),
\t
/* server buffer = %
h
u */
\n
"
,
size
,
size
);
print_file
(
file
,
indent
,
"NdrFcShort(0x%x),
\t
/* server buffer = %u */
\n
"
,
size
,
size
);
print_file
(
file
,
indent
,
"0x%02x,
\n
"
,
oi2_flags
);
print_file
(
file
,
indent
,
"0x%02x,
\t
/* %u params */
\n
"
,
nb_args
,
nb_args
);
print_file
(
file
,
indent
,
"0x%02x,
\n
"
,
pointer_size
==
8
?
10
:
8
);
...
...
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