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
15956152
Commit
15956152
authored
Mar 17, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Improve ICreateTypeInfo2 AddImplType implementation.
parent
d2319ae8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
typelib2.c
dlls/oleaut32/typelib2.c
+7
-2
No files found.
dlls/oleaut32/typelib2.c
View file @
15956152
...
...
@@ -1853,6 +1853,7 @@ static HRESULT WINAPI ICreateTypeInfo2_fnAddImplType(
ref
->
flags
=
0
;
ref
->
oCustData
=
-
1
;
ref
->
onext
=
-
1
;
This
->
typeinfo
->
cImplTypes
++
;
}
else
if
(
This
->
typekind
==
TKIND_INTERFACE
)
{
if
(
This
->
typeinfo
->
cImplTypes
&&
index
==
1
)
return
TYPE_E_BADMODULEKIND
;
...
...
@@ -1860,14 +1861,18 @@ static HRESULT WINAPI ICreateTypeInfo2_fnAddImplType(
if
(
index
!=
0
)
return
TYPE_E_ELEMENTNOTFOUND
;
This
->
typeinfo
->
datatype1
=
hRefType
;
This
->
typeinfo
->
cImplTypes
=
1
;
}
else
if
(
This
->
typekind
==
TKIND_DISPATCH
)
{
FIXME
(
"dispatch case unhandled.
\n
"
);
if
(
index
!=
0
)
return
TYPE_E_ELEMENTNOTFOUND
;
/* FIXME: Check if referenced typeinfo is IDispatch */
This
->
typeinfo
->
flags
|=
TYPEFLAG_FDISPATCHABLE
;
This
->
typeinfo
->
cImplTypes
=
1
;
}
else
{
FIXME
(
"AddImplType unsupported on typekind %d
\n
"
,
This
->
typekind
);
return
E_OUTOFMEMORY
;
}
This
->
typeinfo
->
cImplTypes
++
;
return
S_OK
;
}
...
...
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