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
58aa0a12
Commit
58aa0a12
authored
Oct 03, 2001
by
Huw D M Davies
Committed by
Alexandre Julliard
Oct 03, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Looks like the SLTG_ImplInfo struct isn't a fixed size.
parent
ed9d1602
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
typelib.c
dlls/oleaut32/typelib.c
+14
-6
No files found.
dlls/oleaut32/typelib.c
View file @
58aa0a12
...
...
@@ -2365,11 +2365,19 @@ static void SLTG_DoRefs(SLTG_RefInfo *pRef, ITypeInfoImpl *pTI,
dump_TLBRefType
(
pTI
->
reflist
);
}
static
char
*
SLTG_DoImpls
(
SLTG_ImplInfo
*
info
,
ITypeInfoImpl
*
pTI
,
static
char
*
SLTG_DoImpls
(
char
*
pBlk
,
ITypeInfoImpl
*
pTI
,
BOOL
OneOnly
)
{
SLTG_ImplInfo
*
info
;
TLBImplType
**
ppImplType
=
&
pTI
->
impltypelist
;
/* I don't really get this structure, usually it's 0x16 bytes
long, but iuser.tlb contains some that are 0x18 bytes long.
That's ok because we can use the next ptr to jump to the next
one. But how do we know the length of the last one? The WORD
at offs 0x8 might be the clue. For now I'm just assuming that
the last one is the regular 0x16 bytes. */
info
=
(
SLTG_ImplInfo
*
)
pBlk
;
while
(
1
)
{
*
ppImplType
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
**
ppImplType
));
...
...
@@ -2382,9 +2390,9 @@ static char *SLTG_DoImpls(SLTG_ImplInfo *info, ITypeInfoImpl *pTI,
break
;
if
(
OneOnly
)
FIXME
(
"Interface inheriting more than one interface
\n
"
);
info
++
;
info
=
(
SLTG_ImplInfo
*
)(
pBlk
+
info
->
next
)
;
}
info
++
;
info
++
;
/* see comment at top of function */
return
(
char
*
)
info
;
}
...
...
@@ -2406,7 +2414,7 @@ static SLTG_TypeInfoTail *SLTG_ProcessCoClass(char *pBlk, ITypeInfoImpl *pTI,
pFirstItem
=
pNextItem
=
(
char
*
)(
pMemHeader
+
1
);
if
(
*
(
WORD
*
)
pFirstItem
==
SLTG_IMPL_MAGIC
)
{
pNextItem
=
SLTG_DoImpls
(
(
SLTG_ImplInfo
*
)
pFirstItem
,
pTI
,
FALSE
);
pNextItem
=
SLTG_DoImpls
(
pFirstItem
,
pTI
,
FALSE
);
}
return
(
SLTG_TypeInfoTail
*
)(
pFirstItem
+
pMemHeader
->
cbExtra
);
...
...
@@ -2433,7 +2441,7 @@ static SLTG_TypeInfoTail *SLTG_ProcessInterface(char *pBlk, ITypeInfoImpl *pTI,
pFirstItem
=
pNextItem
=
(
char
*
)(
pMemHeader
+
1
);
if
(
*
(
WORD
*
)
pFirstItem
==
SLTG_IMPL_MAGIC
)
{
pNextItem
=
SLTG_DoImpls
(
(
SLTG_ImplInfo
*
)
pFirstItem
,
pTI
,
TRUE
);
pNextItem
=
SLTG_DoImpls
(
pFirstItem
,
pTI
,
TRUE
);
}
for
(
pFunc
=
(
SLTG_Function
*
)
pNextItem
,
num
=
1
;
1
;
...
...
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