Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
d38cc9ac
Commit
d38cc9ac
authored
Mar 20, 2009
by
Rob Shearman
Committed by
Alexandre Julliard
Mar 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Initialise ref pointers to basic and enum types to 0 in generated server code.
Previously it was only done for pointers.
parent
48a5db07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
typegen.c
tools/widl/typegen.c
+18
-1
No files found.
tools/widl/typegen.c
View file @
d38cc9ac
...
...
@@ -3822,8 +3822,25 @@ void assign_stub_out_args( FILE *file, int indent, const var_t *func, const char
else
{
fprintf
(
file
,
" = &%s_W%u;
\n
"
,
local_var_prefix
,
i
);
if
(
is_ptr
(
var
->
type
)
&&
!
last_ptr
(
var
->
type
))
switch
(
typegen_detect_type
(
type_pointer_get_ref
(
var
->
type
),
var
->
attrs
,
TDT_IGNORE_STRINGS
))
{
case
TGT_BASIC
:
case
TGT_ENUM
:
case
TGT_POINTER
:
print_file
(
file
,
indent
,
"%s_W%u = 0;
\n
"
,
local_var_prefix
,
i
);
break
;
case
TGT_STRUCT
:
case
TGT_UNION
:
case
TGT_USER_TYPE
:
case
TGT_IFACE_POINTER
:
case
TGT_ARRAY
:
case
TGT_CTXT_HANDLE
:
case
TGT_CTXT_HANDLE_POINTER
:
case
TGT_INVALID
:
case
TGT_STRING
:
/* not initialised */
break
;
}
i
++
;
}
...
...
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