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
2c2b50a4
Commit
2c2b50a4
authored
Dec 11, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun/tests: Test to query for IUnknown from IProvideClassInfo.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
55fdb039
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
dictionary.c
dlls/scrrun/tests/dictionary.c
+6
-0
filesystem.c
dlls/scrrun/tests/filesystem.c
+6
-0
No files found.
dlls/scrrun/tests/dictionary.c
View file @
2c2b50a4
...
...
@@ -36,6 +36,7 @@ static void _test_provideclassinfo(IDispatch *disp, const GUID *guid, int line)
IProvideClassInfo
*
classinfo
;
TYPEATTR
*
attr
;
ITypeInfo
*
ti
;
IUnknown
*
unk
;
HRESULT
hr
;
hr
=
IDispatch_QueryInterface
(
disp
,
&
IID_IProvideClassInfo
,
(
void
**
)
&
classinfo
);
...
...
@@ -50,6 +51,11 @@ static void _test_provideclassinfo(IDispatch *disp, const GUID *guid, int line)
ok_
(
__FILE__
,
line
)
(
IsEqualGUID
(
&
attr
->
guid
,
guid
),
"Unexpected typeinfo %s, expected %s
\n
"
,
wine_dbgstr_guid
(
&
attr
->
guid
),
wine_dbgstr_guid
(
guid
));
hr
=
IProvideClassInfo_QueryInterface
(
classinfo
,
&
IID_IUnknown
,
(
void
**
)
&
unk
);
ok
(
hr
==
S_OK
,
"Failed to QI for IUnknown.
\n
"
);
ok
(
unk
==
(
IUnknown
*
)
disp
,
"Got unk %p, original %p
\n
"
,
unk
,
disp
);
IUnknown_Release
(
unk
);
IProvideClassInfo_Release
(
classinfo
);
ITypeInfo_ReleaseTypeAttr
(
ti
,
attr
);
ITypeInfo_Release
(
ti
);
...
...
dlls/scrrun/tests/filesystem.c
View file @
2c2b50a4
...
...
@@ -106,6 +106,7 @@ static void _test_provideclassinfo(IDispatch *disp, const GUID *guid, int line)
IProvideClassInfo
*
classinfo
;
TYPEATTR
*
attr
;
ITypeInfo
*
ti
;
IUnknown
*
unk
;
HRESULT
hr
;
hr
=
IDispatch_QueryInterface
(
disp
,
&
IID_IProvideClassInfo
,
(
void
**
)
&
classinfo
);
...
...
@@ -120,6 +121,11 @@ static void _test_provideclassinfo(IDispatch *disp, const GUID *guid, int line)
ok_
(
__FILE__
,
line
)
(
IsEqualGUID
(
&
attr
->
guid
,
guid
),
"Unexpected typeinfo %s, expected %s
\n
"
,
wine_dbgstr_guid
(
&
attr
->
guid
),
wine_dbgstr_guid
(
guid
));
hr
=
IProvideClassInfo_QueryInterface
(
classinfo
,
&
IID_IUnknown
,
(
void
**
)
&
unk
);
ok
(
hr
==
S_OK
,
"Failed to QI for IUnknown.
\n
"
);
ok
(
unk
==
(
IUnknown
*
)
disp
,
"Got unk %p, original %p.
\n
"
,
unk
,
disp
);
IUnknown_Release
(
unk
);
IProvideClassInfo_Release
(
classinfo
);
ITypeInfo_ReleaseTypeAttr
(
ti
,
attr
);
ITypeInfo_Release
(
ti
);
...
...
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