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
d4dc2a3a
Commit
d4dc2a3a
authored
Nov 13, 2010
by
André Hentschel
Committed by
Alexandre Julliard
Nov 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Fix for typelib generation when unaligned access to memory is not allowed.
parent
7aa15927
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
write_msft.c
tools/widl/write_msft.c
+1
-1
No files found.
tools/widl/write_msft.c
View file @
d4dc2a3a
...
...
@@ -1208,7 +1208,7 @@ static void write_value(msft_typelib_t* typelib, int *out, int vt, const void *v
int
len
=
strlen
(
s
),
seg_len
=
(
len
+
6
+
3
)
&
~
0x3
;
int
offset
=
ctl2_alloc_segment
(
typelib
,
MSFT_SEG_CUSTDATA
,
seg_len
,
0
);
*
((
unsigned
short
*
)
&
typelib
->
typelib_segment_data
[
MSFT_SEG_CUSTDATA
][
offset
])
=
vt
;
*
((
unsigned
int
*
)
&
typelib
->
typelib_segment_data
[
MSFT_SEG_CUSTDATA
][
offset
+
2
])
=
len
;
memcpy
(
&
typelib
->
typelib_segment_data
[
MSFT_SEG_CUSTDATA
][
offset
+
2
],
&
len
,
sizeof
(
len
));
memcpy
(
&
typelib
->
typelib_segment_data
[
MSFT_SEG_CUSTDATA
][
offset
+
6
],
value
,
len
);
len
+=
6
;
while
(
len
<
seg_len
)
{
...
...
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