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
eb15921f
Commit
eb15921f
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 dual interfaces creation in typelib.
parent
d9fd33e3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
104 additions
and
40 deletions
+104
-40
typelib.c
dlls/oleaut32/tests/typelib.c
+23
-4
typelib2.c
dlls/oleaut32/typelib2.c
+81
-36
No files found.
dlls/oleaut32/tests/typelib.c
View file @
eb15921f
...
...
@@ -988,7 +988,7 @@ static void test_CreateTypeLib(void) {
ICreateTypeLib2
*
createtl
;
ICreateTypeInfo
*
createti
;
ITypeLib
*
tl
,
*
stdole
;
ITypeInfo
*
interface1
,
*
interface2
,
*
unknown
,
*
dispatch
,
*
ti
;
ITypeInfo
*
interface1
,
*
interface2
,
*
dual
,
*
unknown
,
*
dispatch
,
*
ti
;
FUNCDESC
funcdesc
;
ELEMDESC
elemdesc
[
5
];
PARAMDESCEX
paramdescex
;
...
...
@@ -1337,10 +1337,10 @@ static void test_CreateTypeLib(void) {
hres
=
ICreateTypeInfo_AddImplType
(
createti
,
0
,
hreftype
);
ok
(
hres
==
S_OK
,
"got %08x
\n
"
,
hres
);
hres
=
ICreateTypeInfo_QueryInterface
(
createti
,
&
IID_ITypeInfo
,
(
void
**
)
&
ti
);
hres
=
ICreateTypeInfo_QueryInterface
(
createti
,
&
IID_ITypeInfo
,
(
void
**
)
&
dual
);
ok
(
hres
==
S_OK
,
"got %08x
\n
"
,
hres
);
hres
=
ITypeInfo_GetTypeAttr
(
ti
,
&
typeattr
);
hres
=
ITypeInfo_GetTypeAttr
(
dual
,
&
typeattr
);
ok
(
hres
==
S_OK
,
"got %08x
\n
"
,
hres
);
ok
(
typeattr
->
cbSizeInstance
==
4
,
"cbSizeInstance = %d
\n
"
,
typeattr
->
cbSizeInstance
);
ok
(
typeattr
->
typekind
==
3
,
"typekind = %d
\n
"
,
typeattr
->
typekind
);
...
...
@@ -1353,10 +1353,28 @@ static void test_CreateTypeLib(void) {
ok
(
typeattr
->
wMajorVerNum
==
0
,
"wMajorVerNum = %d
\n
"
,
typeattr
->
wMajorVerNum
);
ok
(
typeattr
->
wMinorVerNum
==
0
,
"wMinorVerNum = %d
\n
"
,
typeattr
->
wMinorVerNum
);
hres
=
ITypeInfo_GetRefTypeOfImplType
(
ti
,
-
1
,
&
hreftype
);
ITypeInfo_ReleaseTypeAttr
(
dual
,
typeattr
);
hres
=
ITypeInfo_GetRefTypeOfImplType
(
dual
,
-
1
,
&
hreftype
);
ok
(
hres
==
S_OK
,
"got %08x
\n
"
,
hres
);
ok
(
hreftype
==
-
2
,
"got %08x
\n
"
,
hreftype
);
hres
=
ITypeInfo_GetRefTypeInfo
(
dual
,
-
2
,
&
ti
);
ok
(
hres
==
S_OK
,
"got %08x
\n
"
,
hres
);
hres
=
ITypeInfo_GetTypeAttr
(
ti
,
&
typeattr
);
ok
(
hres
==
S_OK
,
"got %08x
\n
"
,
hres
);
ok
(
typeattr
->
cbSizeInstance
==
4
,
"cbSizeInstance = %d
\n
"
,
typeattr
->
cbSizeInstance
);
ok
(
typeattr
->
typekind
==
4
,
"typekind = %d
\n
"
,
typeattr
->
typekind
);
todo_wine
ok
(
typeattr
->
cFuncs
==
8
,
"cFuncs = %d
\n
"
,
typeattr
->
cFuncs
);
ok
(
typeattr
->
cVars
==
0
,
"cVars = %d
\n
"
,
typeattr
->
cVars
);
ok
(
typeattr
->
cImplTypes
==
1
,
"cImplTypes = %d
\n
"
,
typeattr
->
cImplTypes
);
ok
(
typeattr
->
cbSizeVft
==
28
,
"cbSizeVft = %d
\n
"
,
typeattr
->
cbSizeVft
);
ok
(
typeattr
->
cbAlignment
==
4
,
"cbAlignment = %d
\n
"
,
typeattr
->
cbAlignment
);
ok
(
typeattr
->
wTypeFlags
==
(
TYPEFLAG_FDISPATCHABLE
|
TYPEFLAG_FDUAL
),
"wTypeFlags = %d
\n
"
,
typeattr
->
wTypeFlags
);
ok
(
typeattr
->
wMajorVerNum
==
0
,
"wMajorVerNum = %d
\n
"
,
typeattr
->
wMajorVerNum
);
ok
(
typeattr
->
wMinorVerNum
==
0
,
"wMinorVerNum = %d
\n
"
,
typeattr
->
wMinorVerNum
);
ITypeInfo_ReleaseTypeAttr
(
ti
,
typeattr
);
ITypeInfo_Release
(
ti
);
...
...
@@ -1402,6 +1420,7 @@ static void test_CreateTypeLib(void) {
ITypeInfo_Release
(
interface2
);
ITypeInfo_Release
(
interface1
);
ITypeInfo_Release
(
dual
);
ITypeInfo_Release
(
dispatch
);
ITypeInfo_Release
(
unknown
);
...
...
dlls/oleaut32/typelib2.c
View file @
eb15921f
This diff is collapsed.
Click to expand it.
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