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
99992630
Commit
99992630
authored
Feb 22, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Feb 22, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Added partial ICreateTypeInfo2_LayOut implementation.
parent
d11b99b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
2 deletions
+42
-2
typelib2.c
dlls/oleaut32/typelib2.c
+42
-2
No files found.
dlls/oleaut32/typelib2.c
View file @
99992630
...
...
@@ -1958,8 +1958,48 @@ static HRESULT WINAPI ICreateTypeInfo2_fnSetTypeIdldesc(
static
HRESULT
WINAPI
ICreateTypeInfo2_fnLayOut
(
ICreateTypeInfo2
*
iface
)
{
TRACE
(
"(%p), stub!
\n
"
,
iface
);
/* return E_OUTOFMEMORY; */
ICreateTypeInfo2Impl
*
This
=
(
ICreateTypeInfo2Impl
*
)
iface
;
CyclicList
*
iter
,
*
iter2
;
int
i
;
TRACE
(
"(%p)
\n
"
,
iface
);
if
(
!
This
->
typedata
)
return
S_OK
;
/* Assign IDs and VTBL entries */
i
=
0
;
This
->
typeinfo
->
cbSizeVft
=
0
;
for
(
iter
=
This
->
typedata
->
next
->
next
;
iter
!=
This
->
typedata
->
next
;
iter
=
iter
->
next
)
{
if
(
iter
->
indice
==
MEMBERID_NIL
)
FIXME
(
"MEMBERID_NIL handling not yet implemented
\n
"
);
iter
->
u
.
data
[
0
]
=
(
iter
->
u
.
data
[
0
]
&
0xffff
)
|
(
i
<<
16
);
if
((
This
->
typeinfo
->
typekind
&
0xf
)
!=
TKIND_MODULE
)
{
iter
->
u
.
data
[
3
]
=
(
iter
->
u
.
data
[
3
]
&
0xffff0000
)
|
This
->
typeinfo
->
cbSizeVft
;
This
->
typeinfo
->
cbSizeVft
+=
4
;
}
/* Construct a list of elements with the same memberid */
iter
->
u
.
data
[
4
]
=
(
iter
->
u
.
data
[
4
]
&
0xffff
)
|
(
i
<<
16
);
for
(
iter2
=
This
->
typedata
->
next
->
next
;
iter2
!=
iter
;
iter2
=
iter2
->
next
)
{
if
(
iter
->
indice
==
iter2
->
indice
)
{
int
v1
,
v2
;
v1
=
iter
->
u
.
data
[
4
]
>>
16
;
v2
=
iter2
->
u
.
data
[
4
]
>>
16
;
iter
->
u
.
data
[
4
]
=
(
iter
->
u
.
data
[
4
]
&
0xffff
)
|
(
v2
<<
16
);
iter2
->
u
.
data
[
4
]
=
(
iter2
->
u
.
data
[
4
]
&
0xffff
)
|
(
v1
<<
16
);
break
;
}
}
i
++
;
}
FIXME
(
"Typeinfo validation not implemented
\n
"
);
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