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
33da66d6
Commit
33da66d6
authored
Sep 19, 2007
by
Dan Hipschman
Committed by
Alexandre Julliard
Sep 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Set the pointer description offset to zero if there are no pointers.
parent
1bbfd72a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
typegen.c
tools/widl/typegen.c
+5
-2
No files found.
tools/widl/typegen.c
View file @
33da66d6
...
@@ -1677,9 +1677,10 @@ static size_t write_struct_tfs(FILE *file, type_t *type,
...
@@ -1677,9 +1677,10 @@ static size_t write_struct_tfs(FILE *file, type_t *type,
/* On the sizing pass, type->ptrdesc may be zero, but it's ok as
/* On the sizing pass, type->ptrdesc may be zero, but it's ok as
nothing is written to file yet. On the actual writing pass,
nothing is written to file yet. On the actual writing pass,
this will have been updated. */
this will have been updated. */
short
reloff
=
type
->
ptrdesc
-
*
tfsoff
;
unsigned
int
absoff
=
type
->
ptrdesc
?
type
->
ptrdesc
:
*
tfsoff
;
short
reloff
=
absoff
-
*
tfsoff
;
print_file
(
file
,
2
,
"NdrFcShort(0x%hx),
\t
/* Offset= %hd (%u) */
\n
"
,
print_file
(
file
,
2
,
"NdrFcShort(0x%hx),
\t
/* Offset= %hd (%u) */
\n
"
,
reloff
,
reloff
,
type
->
ptrdesc
);
reloff
,
reloff
,
absoff
);
*
tfsoff
+=
2
;
*
tfsoff
+=
2
;
}
}
else
if
((
type
->
type
==
RPC_FC_PSTRUCT
)
||
else
if
((
type
->
type
==
RPC_FC_PSTRUCT
)
||
...
@@ -1708,6 +1709,8 @@ static size_t write_struct_tfs(FILE *file, type_t *type,
...
@@ -1708,6 +1709,8 @@ static size_t write_struct_tfs(FILE *file, type_t *type,
if
(
is_ptr
(
ft
))
if
(
is_ptr
(
ft
))
write_pointer_tfs
(
file
,
ft
,
tfsoff
);
write_pointer_tfs
(
file
,
ft
,
tfsoff
);
}
}
if
(
type
->
ptrdesc
==
*
tfsoff
)
type
->
ptrdesc
=
0
;
}
}
current_structure
=
save_current_structure
;
current_structure
=
save_current_structure
;
...
...
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