Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
2717b812
Commit
2717b812
authored
Jan 19, 2005
by
Huw Davies
Committed by
Alexandre Julliard
Jan 19, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pad small strings out to eight bytes.
Fix 'has default values' flag.
parent
2c0e46d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
write_msft.c
tools/widl/write_msft.c
+6
-1
No files found.
tools/widl/write_msft.c
View file @
2717b812
...
...
@@ -333,6 +333,11 @@ static int ctl2_encode_string(
converted_string
[
0
]
=
length
&
0xff
;
converted_string
[
1
]
=
(
length
>>
8
)
&
0xff
;
if
(
length
<
3
)
{
/* strings of this length are padded with upto 8 bytes incl the 2 byte length */
for
(
offset
=
0
;
offset
<
4
;
offset
++
)
converted_string
[
length
+
offset
+
2
]
=
0x57
;
length
+=
4
;
}
for
(
offset
=
(
4
-
(
length
+
2
))
&
3
;
offset
;
offset
--
)
converted_string
[
length
+
offset
+
1
]
=
0x57
;
*
result
=
converted_string
;
...
...
@@ -1176,7 +1181,7 @@ static HRESULT add_func_desc(msft_typeinfo_t* typeinfo, func_t *func)
typedata
[
2
]
=
funcflags
;
typedata
[
3
]
=
((
52
/*sizeof(FUNCDESC)*/
+
decoded_size
)
<<
16
)
|
typeinfo
->
typeinfo
->
cbSizeVft
;
typedata
[
4
]
=
(
index
<<
16
)
|
(
callconv
<<
8
)
|
9
;
if
(
num_defaults
)
typedata
[
4
]
|=
0x10
;
if
(
num_defaults
)
typedata
[
4
]
|=
0x10
00
;
typedata
[
5
]
=
num_params
;
/* NOTE: High word of typedata[3] is total size of FUNCDESC + size of all ELEMDESCs for params + TYPEDESCs for pointer params and return types. */
...
...
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