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
a2051075
Commit
a2051075
authored
Jun 29, 2005
by
Huw Davies
Committed by
Alexandre Julliard
Jun 29, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the import table code to eliminate a few magic constants.
parent
fe311461
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
typelib_struct.h
tools/widl/typelib_struct.h
+5
-3
write_msft.c
tools/widl/write_msft.c
+1
-1
No files found.
tools/widl/typelib_struct.h
View file @
a2051075
...
...
@@ -153,17 +153,19 @@ typedef struct tagMSFT_TypeInfoBase {
/* loword is num of inherited interfaces */
INT
res18
;
/* always? 0 */
/*060*/
INT
res19
;
/* always? -1 */
}
MSFT_TypeInfoBase
;
}
MSFT_TypeInfoBase
;
/* layout of an entry with information on imported types */
typedef
struct
tagMSFT_ImpInfo
{
INT
res0
;
/* bits 0 - 15: count */
INT
flags
;
/* bits 0 - 15: count */
/* bit 16: if set oGuid is an offset to Guid */
/* if clear oGuid is a typeinfo index in the specified typelib */
/* bits 24 - 31: TKIND of reference */
INT
oImpFile
;
/* offset in the Import File table */
INT
oGuid
;
/* offset in Guid table or typeinfo index (see bit 16 of res0) */
}
MSFT_ImpInfo
;
}
MSFT_ImpInfo
;
#define MSFT_IMPINFO_OFFSET_IS_GUID 0x00010000
/* function description data */
typedef
struct
{
...
...
tools/widl/write_msft.c
View file @
a2051075
...
...
@@ -1751,7 +1751,7 @@ static void add_dispatch(msft_typelib_t *typelib)
guidentry
.
guid
=
iid_idispatch
;
guidentry
.
hreftype
=
1
;
guidentry
.
next_hash
=
-
1
;
impinfo
.
res0
=
0x301
<<
16
;
impinfo
.
flags
=
TKIND_INTERFACE
<<
24
|
MSFT_IMPINFO_OFFSET_IS_GUID
;
impinfo
.
oImpFile
=
impfile_offset
;
impinfo
.
oGuid
=
ctl2_alloc_guid
(
typelib
,
&
guidentry
);
typelib
->
typelib_header
.
dispatchpos
=
alloc_importinfo
(
typelib
,
&
impinfo
)
|
0x01
;
...
...
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