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
117f21de
Commit
117f21de
authored
May 17, 2007
by
Huw Davies
Committed by
Alexandre Julliard
May 18, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Test for interface that derives from IUnknown.
parent
04a76cf5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
typelib.c
dlls/oleaut32/tests/typelib.c
+26
-0
No files found.
dlls/oleaut32/tests/typelib.c
View file @
117f21de
...
@@ -790,6 +790,32 @@ if(use_midl_tlb) {
...
@@ -790,6 +790,32 @@ if(use_midl_tlb) {
}
}
ITypeInfo_Release
(
pTI
);
ITypeInfo_Release
(
pTI
);
/* ItestIF2 is an interface which derives from IUnknown */
hr
=
ITypeLib_GetTypeInfoOfGuid
(
pTL
,
&
IID_ItestIF2
,
&
pTI
);
ok
(
hr
==
S_OK
,
"hr %08x
\n
"
,
hr
);
hr
=
ITypeInfo_GetTypeAttr
(
pTI
,
&
pTA
);
ok
(
hr
==
S_OK
,
"hr %08x
\n
"
,
hr
);
ok
(
pTA
->
typekind
==
TKIND_INTERFACE
,
"kind %04x
\n
"
,
pTA
->
typekind
);
ok
(
pTA
->
cbSizeVft
==
24
,
"sizevft %d
\n
"
,
pTA
->
cbSizeVft
);
ok
(
pTA
->
wTypeFlags
==
0
,
"typeflags %x
\n
"
,
pTA
->
wTypeFlags
);
if
(
use_midl_tlb
)
{
ok
(
pTA
->
cFuncs
==
1
,
"cfuncs %d
\n
"
,
pTA
->
cFuncs
);
ok
(
pTA
->
cImplTypes
==
1
,
"cimpltypes %d
\n
"
,
pTA
->
cImplTypes
);
ITypeInfo_ReleaseTypeAttr
(
pTI
,
pTA
);
/* Should have one method */
hr
=
ITypeInfo_GetFuncDesc
(
pTI
,
1
,
&
pFD
);
ok
(
hr
==
TYPE_E_ELEMENTNOTFOUND
,
"hr %08x
\n
"
,
hr
);
hr
=
ITypeInfo_GetFuncDesc
(
pTI
,
0
,
&
pFD
);
ok
(
hr
==
S_OK
,
"hr %08x
\n
"
,
hr
);
ok
(
pFD
->
memid
==
0x60020000
,
"memid %08x
\n
"
,
pFD
->
memid
);
ok
(
pFD
->
oVft
==
20
,
"oVft %d
\n
"
,
pFD
->
oVft
);
ITypeInfo_ReleaseFuncDesc
(
pTI
,
pFD
);
}
ITypeInfo_Release
(
pTI
);
ITypeLib_Release
(
pTL
);
ITypeLib_Release
(
pTL
);
return
;
return
;
...
...
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