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
90351160
Commit
90351160
authored
Jan 17, 2005
by
Huw Davies
Committed by
Alexandre Julliard
Jan 17, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add VT_VARIANT support.
Fix for the case when there is no helpstringdll. Fix for parameter arrays.
parent
6269f00c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
write_msft.c
tools/widl/write_msft.c
+10
-2
No files found.
tools/widl/write_msft.c
View file @
90351160
...
@@ -752,6 +752,10 @@ static int encode_type(
...
@@ -752,6 +752,10 @@ static int encode_type(
*
alignment
=
4
;
*
alignment
=
4
;
break
;
break
;
case
VT_VARIANT
:
*
encoded_type
=
default_type
;
break
;
case
VT_PTR
:
case
VT_PTR
:
{
{
int
next_vt
;
int
next_vt
;
...
@@ -919,8 +923,9 @@ static int encode_var(
...
@@ -919,8 +923,9 @@ static int encode_var(
*
decoded_size
=
0
;
*
decoded_size
=
0
;
chat
(
"encode_var: var %p var->tname %s var->type %p var->ptr_level %d var->type->ref %p
\n
"
,
var
,
var
->
tname
,
var
->
type
,
var
->
ptr_level
,
var
->
type
->
ref
);
chat
(
"encode_var: var %p var->tname %s var->type %p var->ptr_level %d var->type->ref %p
\n
"
,
var
,
var
->
tname
,
var
->
type
,
var
->
ptr_level
,
var
->
type
->
ref
);
if
(
var
->
ptr_level
--
)
{
if
(
var
->
ptr_level
)
{
int
skip_ptr
;
int
skip_ptr
;
var
->
ptr_level
--
;
skip_ptr
=
encode_var
(
typelib
,
var
,
&
target_type
,
NULL
,
NULL
,
&
child_size
);
skip_ptr
=
encode_var
(
typelib
,
var
,
&
target_type
,
NULL
,
NULL
,
&
child_size
);
var
->
ptr_level
++
;
var
->
ptr_level
++
;
...
@@ -1808,7 +1813,10 @@ static int save_all_changes(msft_typelib_t *typelib)
...
@@ -1808,7 +1813,10 @@ static int save_all_changes(msft_typelib_t *typelib)
ctl2_finalize_typeinfos
(
typelib
,
filepos
);
ctl2_finalize_typeinfos
(
typelib
,
filepos
);
if
(
!
ctl2_write_chunk
(
fd
,
&
typelib
->
typelib_header
,
sizeof
(
typelib
->
typelib_header
)))
return
retval
;
if
(
!
ctl2_write_chunk
(
fd
,
&
typelib
->
typelib_header
,
sizeof
(
typelib
->
typelib_header
)))
return
retval
;
if
(
!
ctl2_write_chunk
(
fd
,
&
typelib
->
help_string_dll_offset
,
sizeof
(
typelib
->
help_string_dll_offset
)))
return
retval
;
if
(
typelib
->
typelib_header
.
varflags
&
0x100
)
if
(
!
ctl2_write_chunk
(
fd
,
&
typelib
->
help_string_dll_offset
,
sizeof
(
typelib
->
help_string_dll_offset
)))
return
retval
;
if
(
!
ctl2_write_chunk
(
fd
,
typelib
->
typelib_typeinfo_offsets
,
typelib
->
typelib_header
.
nrtypeinfos
*
4
))
return
retval
;
if
(
!
ctl2_write_chunk
(
fd
,
typelib
->
typelib_typeinfo_offsets
,
typelib
->
typelib_header
.
nrtypeinfos
*
4
))
return
retval
;
if
(
!
ctl2_write_chunk
(
fd
,
&
typelib
->
typelib_segdir
,
sizeof
(
typelib
->
typelib_segdir
)))
return
retval
;
if
(
!
ctl2_write_chunk
(
fd
,
&
typelib
->
typelib_segdir
,
sizeof
(
typelib
->
typelib_segdir
)))
return
retval
;
if
(
!
ctl2_write_segment
(
typelib
,
fd
,
MSFT_SEG_TYPEINFO
))
return
retval
;
if
(
!
ctl2_write_segment
(
typelib
,
fd
,
MSFT_SEG_TYPEINFO
))
return
retval
;
...
...
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