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
fe311461
Commit
fe311461
authored
Jun 29, 2005
by
Huw Davies
Committed by
Alexandre Julliard
Jun 29, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cope with the index in a import table entry being a typeinfo index
rather than a guid offset.
parent
ff25db08
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
typelib.c
dlls/oleaut32/typelib.c
+5
-2
typelib.h
dlls/oleaut32/typelib.h
+5
-3
typelib2.c
dlls/oleaut32/typelib2.c
+1
-1
No files found.
dlls/oleaut32/typelib.c
View file @
fe311461
...
...
@@ -1997,8 +1997,11 @@ static void MSFT_DoRefType(TLBContext *pcx, ITypeInfoImpl *pTI,
if
(
pImpLib
){
(
*
ppRefType
)
->
reference
=
offset
;
(
*
ppRefType
)
->
pImpTLInfo
=
pImpLib
;
MSFT_ReadGuid
(
&
(
*
ppRefType
)
->
guid
,
impinfo
.
oGuid
,
pcx
);
(
*
ppRefType
)
->
index
=
TLB_REF_USE_GUID
;
if
(
impinfo
.
flags
&
MSFT_IMPINFO_OFFSET_IS_GUID
)
{
MSFT_ReadGuid
(
&
(
*
ppRefType
)
->
guid
,
impinfo
.
oGuid
,
pcx
);
(
*
ppRefType
)
->
index
=
TLB_REF_USE_GUID
;
}
else
(
*
ppRefType
)
->
index
=
impinfo
.
oGuid
;
}
else
{
ERR
(
"Cannot find a reference
\n
"
);
(
*
ppRefType
)
->
reference
=-
1
;
...
...
dlls/oleaut32/typelib.h
View file @
fe311461
...
...
@@ -157,17 +157,19 @@ typedef struct tagMSFT_TypeInfoBase {
/* else it is zero? */
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
{
...
...
dlls/oleaut32/typelib2.c
View file @
fe311461
...
...
@@ -1242,7 +1242,7 @@ static HRESULT WINAPI ICreateTypeInfo2_fnSetTypeFlags(ICreateTypeInfo2 *iface, U
guidoffset
=
ctl2_alloc_guid
(
This
->
typelib
,
&
foo
);
if
(
guidoffset
==
-
1
)
return
E_OUTOFMEMORY
;
impinfo
.
res0
=
0x03010000
;
impinfo
.
flags
=
TKIND_INTERFACE
<<
24
|
MSFT_IMPINFO_OFFSET_IS_GUID
;
impinfo
.
oImpFile
=
fileoffset
;
impinfo
.
oGuid
=
guidoffset
;
ctl2_alloc_importinfo
(
This
->
typelib
,
&
impinfo
);
...
...
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