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
06479cb7
Commit
06479cb7
authored
Dec 18, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Add equality tests for antimonikers.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f6a1b37d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
moniker.c
dlls/ole32/tests/moniker.c
+36
-0
No files found.
dlls/ole32/tests/moniker.c
View file @
06479cb7
...
...
@@ -2025,6 +2025,9 @@ todo_wine
IMoniker_Release
(
moniker2
);
/* Load with composed number > 1. */
hr
=
CreateAntiMoniker
(
&
moniker2
);
ok
(
hr
==
S_OK
,
"Failed to create moniker, hr %#x.
\n
"
,
hr
);
hr
=
CreateStreamOnHGlobal
(
NULL
,
TRUE
,
&
stream
);
ok
(
hr
==
S_OK
,
"Failed to create a stream, hr %#x.
\n
"
,
hr
);
...
...
@@ -2034,6 +2037,14 @@ todo_wine
todo_wine
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IMoniker_IsEqual
(
moniker
,
moniker2
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IMoniker_IsEqual
(
moniker2
,
moniker
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IMoniker_Hash
(
moniker
,
&
hash
);
ok
(
hr
==
S_OK
,
"Failed to get hash value, hr %#x.
\n
"
,
hr
);
todo_wine
...
...
@@ -2076,6 +2087,14 @@ todo_wine
todo_wine
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IMoniker_IsEqual
(
moniker
,
moniker2
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IMoniker_IsEqual
(
moniker2
,
moniker
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IMoniker_Hash
(
moniker
,
&
hash
);
ok
(
hr
==
S_OK
,
"Failed to get hash value, hr %#x.
\n
"
,
hr
);
todo_wine
...
...
@@ -2087,10 +2106,27 @@ todo_wine
ok
(
!
lstrcmpW
(
name
,
L""
),
"Unexpected display name %s.
\n
"
,
wine_dbgstr_w
(
name
));
CoTaskMemFree
(
name
);
/* Back to initial value. */
stream_write_dword
(
stream
,
1
);
hr
=
IMoniker_Load
(
moniker
,
stream
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IMoniker_IsEqual
(
moniker
,
moniker2
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IMoniker_IsEqual
(
moniker2
,
moniker
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IMoniker_IsEqual
(
moniker
,
NULL
);
todo_wine
ok
(
hr
==
E_INVALIDARG
,
"Unexpected hr %#x.
\n
"
,
hr
);
IStream_Release
(
stream
);
IBindCtx_Release
(
bindctx
);
IMoniker_Release
(
moniker
);
IMoniker_Release
(
moniker2
);
}
static
void
test_generic_composite_moniker
(
void
)
...
...
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