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
21846747
Commit
21846747
authored
Mar 15, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Improve ICreateTypeInfo_LayOut implementation.
parent
aecd956b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletion
+29
-1
typelib2.c
dlls/oleaut32/typelib2.c
+29
-1
No files found.
dlls/oleaut32/typelib2.c
View file @
21846747
...
...
@@ -2360,6 +2360,7 @@ static HRESULT WINAPI ICreateTypeInfo2_fnLayOut(
TRACE
(
"(%p)
\n
"
,
iface
);
/* FIXME: LayOut should be run on all ImplTypes */
if
(
This
->
typekind
==
TKIND_COCLASS
)
return
S_OK
;
...
...
@@ -2429,7 +2430,34 @@ static HRESULT WINAPI ICreateTypeInfo2_fnLayOut(
ITypeInfo_Release
(
cur
);
}
This
->
typeinfo
->
cbSizeVft
=
(
This
->
typeinfo
->
datatype2
>>
16
)
*
4
;
/* Get cbSizeVft of inherited interface */
/* Makes LayOut running recursively */
if
(
This
->
typeinfo
->
datatype1
!=
-
1
)
{
ITypeInfo
*
cur
,
*
inherited
;
TYPEATTR
*
typeattr
;
hres
=
ICreateTypeInfo_QueryInterface
(
iface
,
&
IID_ITypeInfo
,
(
void
**
)
&
cur
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
ITypeInfo_GetRefTypeInfo
(
cur
,
This
->
typeinfo
->
datatype1
,
&
inherited
);
ITypeInfo_Release
(
cur
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
ITypeInfo_GetTypeAttr
(
inherited
,
&
typeattr
);
if
(
FAILED
(
hres
))
{
ITypeInfo_Release
(
inherited
);
return
hres
;
}
This
->
typeinfo
->
cbSizeVft
=
typeattr
->
cbSizeVft
;
ITypeInfo_ReleaseTypeAttr
(
inherited
,
typeattr
);
ITypeInfo_Release
(
inherited
);
}
else
This
->
typeinfo
->
cbSizeVft
=
0
;
if
(
!
This
->
typedata
)
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