Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
bf081542
Commit
bf081542
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 MEMBERID_NIL handling to ICreateTypeInfo_LayOut.
parent
17652291
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
typelib.c
dlls/oleaut32/tests/typelib.c
+4
-0
typelib2.c
dlls/oleaut32/typelib2.c
+19
-2
No files found.
dlls/oleaut32/tests/typelib.c
View file @
bf081542
...
...
@@ -1041,6 +1041,10 @@ static void test_CreateTypeLib(void) {
hres
=
ICreateTypeInfo_AddFuncDesc
(
createti
,
1
,
&
funcdesc
);
ok
(
hres
==
S_OK
,
"got %08x
\n
"
,
hres
);
funcdesc
.
memid
=
MEMBERID_NIL
;
hres
=
ICreateTypeInfo_AddFuncDesc
(
createti
,
1
,
&
funcdesc
);
ok
(
hres
==
S_OK
,
"got %08x
\n
"
,
hres
);
ICreateTypeInfo_Release
(
createti
);
hres
=
ICreateTypeLib_CreateTypeInfo
(
createtl
,
interface1W
,
TKIND_INTERFACE
,
&
createti
);
...
...
dlls/oleaut32/typelib2.c
View file @
bf081542
...
...
@@ -1994,8 +1994,25 @@ static HRESULT WINAPI ICreateTypeInfo2_fnLayOut(
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
"
);
/* Assign MEMBERID if MEMBERID_NIL was specified */
if
(
iter
->
indice
==
MEMBERID_NIL
)
{
iter
->
indice
=
0x60000000
+
i
;
for
(
iter2
=
This
->
typedata
->
next
->
next
;
iter2
!=
This
->
typedata
->
next
;
iter2
=
iter2
->
next
)
{
if
(
iter
==
iter2
)
continue
;
if
(
iter2
->
indice
==
iter
->
indice
)
{
iter
->
indice
=
0x5fffffff
+
This
->
typeinfo
->
cElement
+
i
;
for
(
iter2
=
This
->
typedata
->
next
->
next
;
iter2
!=
This
->
typedata
->
next
;
iter2
=
iter2
->
next
)
{
if
(
iter
==
iter2
)
continue
;
if
(
iter2
->
indice
==
iter
->
indice
)
return
E_ACCESSDENIED
;
}
break
;
}
}
}
typedata
[
i
]
=
iter
;
...
...
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