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
55ca7eaa
Commit
55ca7eaa
authored
Jan 14, 2005
by
Huw Davies
Committed by
Alexandre Julliard
Jan 14, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for BSTR default values.
parent
5ce396f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
write_msft.c
tools/widl/write_msft.c
+17
-4
No files found.
tools/widl/write_msft.c
View file @
55ca7eaa
...
...
@@ -1077,11 +1077,24 @@ static void write_value(msft_typeinfo_t* typeinfo, int *out, var_t *arg, int typ
return
;
}
case
VT_BSTR
:
warning
(
"default value BSTR %s
\n
"
,
(
char
*
)
value
);
break
;
{
char
*
s
=
(
char
*
)
value
;
int
len
=
strlen
(
s
),
seg_len
=
(
len
+
6
+
3
)
&
~
0x3
;
int
offset
=
ctl2_alloc_segment
(
typeinfo
->
typelib
,
MSFT_SEG_CUSTDATA
,
seg_len
,
0
);
*
((
unsigned
short
*
)
&
typeinfo
->
typelib
->
typelib_segment_data
[
MSFT_SEG_CUSTDATA
][
offset
])
=
vt
;
*
((
unsigned
int
*
)
&
typeinfo
->
typelib
->
typelib_segment_data
[
MSFT_SEG_CUSTDATA
][
offset
+
2
])
=
len
;
memcpy
(
&
typeinfo
->
typelib
->
typelib_segment_data
[
MSFT_SEG_CUSTDATA
][
offset
+
6
],
value
,
len
);
len
+=
6
;
while
(
len
<
seg_len
)
{
*
((
char
*
)
&
typeinfo
->
typelib
->
typelib_segment_data
[
MSFT_SEG_CUSTDATA
][
offset
+
len
])
=
0x57
;
len
++
;
}
*
out
=
offset
;
return
;
}
default:
warning
(
"can't write value of type %d yet
\n
"
,
vt
);
default:
warning
(
"can't write value of type %d yet
\n
"
,
vt
);
}
return
;
}
...
...
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