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
9d26c6d7
Commit
9d26c6d7
authored
Jan 07, 2016
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 03, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Properly align name table entries.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
parent
f3ca3044
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
write_sltg.c
tools/widl/write_sltg.c
+6
-1
No files found.
tools/widl/write_sltg.c
View file @
9d26c6d7
...
...
@@ -192,10 +192,15 @@ static int add_name(struct sltg_data *name_table, const char *name)
{
int
name_offset
=
name_table
->
size
;
int
new_size
=
name_table
->
size
+
strlen
(
name
)
+
1
+
8
;
int
aligned_size
;
chat
(
"add_name: %s
\n
"
,
name
);
new_size
=
(
new_size
+
1
)
&
~
1
;
/* align */
aligned_size
=
(
new_size
+
0x1f
)
&
~
0x1f
;
if
(
aligned_size
-
new_size
<
4
)
new_size
=
aligned_size
;
else
new_size
=
(
new_size
+
1
)
&
~
1
;
if
(
new_size
>
name_table
->
allocated
)
{
...
...
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