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
ee944716
Commit
ee944716
authored
Nov 03, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comsvcs: Implement Hash() for "new" moniker.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
51d90cb8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
main.c
dlls/comsvcs/main.c
+8
-2
comsvcs.c
dlls/comsvcs/tests/comsvcs.c
+1
-2
No files found.
dlls/comsvcs/main.c
View file @
ee944716
...
...
@@ -55,6 +55,7 @@ struct new_moniker
{
IMoniker
IMoniker_iface
;
LONG
refcount
;
CLSID
clsid
;
};
static
HRESULT
new_moniker_parse_displayname
(
IBindCtx
*
pbc
,
LPOLESTR
name
,
ULONG
*
eaten
,
IMoniker
**
ret
);
...
...
@@ -556,9 +557,13 @@ static HRESULT WINAPI new_moniker_IsEqual(IMoniker *iface, IMoniker *other_monik
static
HRESULT
WINAPI
new_moniker_Hash
(
IMoniker
*
iface
,
DWORD
*
hash
)
{
FIXME
(
"%p, %p.
\n
"
,
iface
,
hash
);
struct
new_moniker
*
moniker
=
impl_from_IMoniker
(
iface
);
return
E_NOTIMPL
;
TRACE
(
"%p, %p.
\n
"
,
iface
,
hash
);
*
hash
=
moniker
->
clsid
.
Data1
;
return
S_OK
;
}
static
HRESULT
WINAPI
new_moniker_IsRunning
(
IMoniker
*
iface
,
IBindCtx
*
pbc
,
IMoniker
*
pmkToLeft
,
...
...
@@ -748,6 +753,7 @@ static HRESULT new_moniker_parse_displayname(IBindCtx *pbc, LPOLESTR name, ULONG
moniker
->
IMoniker_iface
.
lpVtbl
=
&
new_moniker_vtbl
;
moniker
->
refcount
=
1
;
moniker
->
clsid
=
guid
;
*
ret
=
&
moniker
->
IMoniker_iface
;
...
...
dlls/comsvcs/tests/comsvcs.c
View file @
ee944716
...
...
@@ -327,10 +327,9 @@ static void test_new_moniker(void)
/* Hashing */
hash
=
0
;
hr
=
IMoniker_Hash
(
moniker
,
&
hash
);
todo_wine
{
ok
(
hr
==
S_OK
,
"Failed to get a hash, hr %#x.
\n
"
,
hr
);
ok
(
hash
==
0x20d04fe0
,
"Unexpected hash value %#x.
\n
"
,
hash
);
}
moniker_type
=
MKSYS_CLASSMONIKER
;
hr
=
IMoniker_IsSystemMoniker
(
moniker
,
&
moniker_type
);
todo_wine
{
...
...
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