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
759e3c9f
Commit
759e3c9f
authored
Dec 12, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Dec 12, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Zero initialize parameters in the generated server code.
Zero initialize parameters in the generated code. Based on a patch by Eric Kohl.
parent
dfb716f3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
server.c
tools/widl/server.c
+21
-0
No files found.
tools/widl/server.c
View file @
759e3c9f
...
...
@@ -68,6 +68,25 @@ static int print_server(const char *format, ...)
}
static
void
write_parameters_init
(
func_t
*
func
)
{
var_t
*
var
;
if
(
!
func
->
args
)
return
;
var
=
func
->
args
;
while
(
NEXT_LINK
(
var
))
var
=
NEXT_LINK
(
var
);
while
(
var
)
{
print_server
(
"%s = 0;
\n
"
,
var
->
name
);
var
=
PREV_LINK
(
var
);
}
fprintf
(
server
,
"
\n
"
);
}
static
void
write_function_stubs
(
type_t
*
iface
)
{
func_t
*
func
=
iface
->
funcs
;
...
...
@@ -131,6 +150,8 @@ static void write_function_stubs(type_t *iface)
indent
--
;
fprintf
(
server
,
"
\n
"
);
write_parameters_init
(
func
);
print_server
(
"RpcTryFinally
\n
"
);
print_server
(
"{
\n
"
);
indent
++
;
...
...
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