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
d11139eb
Commit
d11139eb
authored
Jan 10, 2016
by
Dmitry Timoshkov
Committed by
Vitaly Lipatov
Jul 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Write SLTG blocks according to the index order.
Now multiple types can be correctly parsed and displayed by oleview.
parent
a5b631bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
write_sltg.c
tools/widl/write_sltg.c
+16
-5
No files found.
tools/widl/write_sltg.c
View file @
d11139eb
...
...
@@ -291,9 +291,20 @@ static void add_block(struct sltg_typelib *sltg, void *data, int size, const cha
block
->
length
=
size
;
block
->
data
=
data
;
block
->
index_string
=
add_index
(
&
sltg
->
index
,
name
);
block
->
next
=
sltg
->
blocks
;
block
->
next
=
NULL
;
if
(
sltg
->
blocks
)
{
struct
sltg_block
*
blocks
=
sltg
->
blocks
;
while
(
blocks
->
next
)
blocks
=
blocks
->
next
;
blocks
->
next
=
block
;
}
else
sltg
->
blocks
=
block
;
sltg
->
blocks
=
block
;
sltg
->
n_file_blocks
++
;
}
...
...
@@ -378,7 +389,7 @@ static void sltg_add_typeinfo(struct sltg_typelib *sltg, void *data, int size, c
{
struct
sltg_block
*
typeinfo
=
sltg
->
typeinfo
;
while
(
typeinfo
&&
typeinfo
->
next
)
while
(
typeinfo
->
next
)
typeinfo
=
typeinfo
->
next
;
typeinfo
->
next
=
block
;
...
...
@@ -1085,12 +1096,12 @@ int create_sltg_typelib(typelib_t *typelib)
init_name_table
(
&
sltg
);
init_library
(
&
sltg
);
add_library_block
(
&
sltg
);
if
(
typelib
->
stmts
)
LIST_FOR_EACH_ENTRY
(
stmt
,
typelib
->
stmts
,
const
statement_t
,
entry
)
add_statement
(
&
sltg
,
stmt
);
add_library_block
(
&
sltg
);
save_all_changes
(
&
sltg
);
return
1
;
...
...
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