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
acb2eef9
Commit
acb2eef9
authored
Dec 17, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Test inverse moniker type.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7b07188d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
5 deletions
+25
-5
moniker.c
dlls/ole32/tests/moniker.c
+25
-5
No files found.
dlls/ole32/tests/moniker.c
View file @
acb2eef9
...
...
@@ -1609,7 +1609,10 @@ todo_wine
IBindCtx_Release
(
bindctx
);
hr
=
IMoniker_Inverse
(
moniker
,
&
inverse
);
ok_ole_success
(
hr
,
IMoniker_Inverse
);
ok
(
hr
==
S_OK
,
"Failed to get inverse, hr %#x.
\n
"
,
hr
);
hr
=
IMoniker_IsSystemMoniker
(
inverse
,
&
moniker_type
);
ok
(
hr
==
S_OK
,
"Failed to get moniker type, hr %#x.
\n
"
,
hr
);
ok
(
moniker_type
==
MKSYS_ANTIMONIKER
,
"Unexpected moniker type %d.
\n
"
,
moniker_type
);
IMoniker_Release
(
inverse
);
IMoniker_Release
(
moniker
);
...
...
@@ -1617,8 +1620,9 @@ todo_wine
static
void
test_file_moniker
(
WCHAR
*
path
)
{
IMoniker
*
moniker1
=
NULL
,
*
moniker2
=
NULL
,
*
inverse
;
DWORD
moniker_type
;
IStream
*
stream
;
IMoniker
*
moniker1
=
NULL
,
*
moniker2
=
NULL
;
IUnknown
*
unk
;
HRESULT
hr
;
...
...
@@ -1634,6 +1638,13 @@ todo_wine
IUnknown_Release
(
unk
);
}
hr
=
IMoniker_Inverse
(
moniker1
,
&
inverse
);
ok
(
hr
==
S_OK
,
"Failed to get inverse, hr %#x.
\n
"
,
hr
);
hr
=
IMoniker_IsSystemMoniker
(
inverse
,
&
moniker_type
);
ok
(
hr
==
S_OK
,
"Failed to get moniker type, hr %#x.
\n
"
,
hr
);
ok
(
moniker_type
==
MKSYS_ANTIMONIKER
,
"Unexpected moniker type %d.
\n
"
,
moniker_type
);
IMoniker_Release
(
inverse
);
hr
=
CreateStreamOnHGlobal
(
NULL
,
TRUE
,
&
stream
);
ok_ole_success
(
hr
,
CreateStreamOnHGlobal
);
...
...
@@ -1892,7 +1903,10 @@ todo_wine
IBindCtx_Release
(
bindctx
);
hr
=
IMoniker_Inverse
(
moniker
,
&
inverse
);
ok_ole_success
(
hr
,
IMoniker_Inverse
);
ok
(
hr
==
S_OK
,
"Failed to get inverse, hr %#x.
\n
"
,
hr
);
hr
=
IMoniker_IsSystemMoniker
(
inverse
,
&
moniker_type
);
ok
(
hr
==
S_OK
,
"Failed to get moniker type, hr %#x.
\n
"
,
hr
);
ok
(
moniker_type
==
MKSYS_ANTIMONIKER
,
"Unexpected moniker type %d.
\n
"
,
moniker_type
);
IMoniker_Release
(
inverse
);
IMoniker_Release
(
moniker
);
...
...
@@ -2068,7 +2082,10 @@ todo_wine
IBindCtx_Release
(
bindctx
);
hr
=
IMoniker_Inverse
(
moniker
,
&
inverse
);
ok_ole_success
(
hr
,
IMoniker_Inverse
);
ok
(
hr
==
S_OK
,
"Failed to get inverse, hr %#x.
\n
"
,
hr
);
hr
=
IMoniker_IsSystemMoniker
(
inverse
,
&
moniker_type
);
ok
(
hr
==
S_OK
,
"Failed to get moniker type, hr %#x.
\n
"
,
hr
);
ok
(
moniker_type
==
MKSYS_GENERICCOMPOSITE
,
"Unexpected moniker type %d.
\n
"
,
moniker_type
);
IMoniker_Release
(
inverse
);
IMoniker_Release
(
moniker
);
...
...
@@ -2150,7 +2167,10 @@ todo_wine
moniker_type
);
hr
=
IMoniker_Inverse
(
moniker
,
&
inverse
);
ok_ole_success
(
hr
,
IMoniker_Inverse
);
ok
(
hr
==
S_OK
,
"Failed to get inverse, hr %#x.
\n
"
,
hr
);
hr
=
IMoniker_IsSystemMoniker
(
inverse
,
&
moniker_type
);
ok
(
hr
==
S_OK
,
"Failed to get moniker type, hr %#x.
\n
"
,
hr
);
ok
(
moniker_type
==
MKSYS_ANTIMONIKER
,
"Unexpected moniker type %d.
\n
"
,
moniker_type
);
IMoniker_Release
(
inverse
);
hr
=
CreateBindCtx
(
0
,
&
bindctx
);
...
...
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